save 10 bytes on strings
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 10 Feb 2011 09:01:49 +0000 (10:01 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 10 Feb 2011 09:01:49 +0000 (10:01 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/messages.c
networking/wget.c

index 2acbc3bcab9df94c9f3f70b0872b7c4e9ecc591a..fad82c9dabce5479e8787cbc739590063b59a378 100644 (file)
@@ -22,7 +22,7 @@
 const char bb_banner[] ALIGN1 = BANNER;
 
 
-const char bb_msg_memory_exhausted[] ALIGN1 = "memory exhausted";
+const char bb_msg_memory_exhausted[] ALIGN1 = "out of memory";
 const char bb_msg_invalid_date[] ALIGN1 = "invalid date '%s'";
 const char bb_msg_unknown[] ALIGN1 = "(unknown)";
 const char bb_msg_can_not_create_raw_socket[] ALIGN1 = "can't create raw socket";
index 8028f1230a8d1bf8efe8c00a13ce9c0e72db5985..74d90040f6a8c23d970d5bcb1e4ceb40ffb150c1 100644 (file)
@@ -192,7 +192,7 @@ static FILE *open_socket(len_and_sockaddr *lsa)
        /* hopefully it understands what ESPIPE means... */
        fp = fdopen(xconnect_stream(lsa), "r+");
        if (fp == NULL)
-               bb_perror_msg_and_die("fdopen");
+               bb_perror_msg_and_die(bb_msg_memory_exhausted);
 
        return fp;
 }