aboutsummaryrefslogtreecommitdiff
path: root/coreutils/uudecode.c
diff options
context:
space:
mode:
authorkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-01-31 19:00:21 +0000
committerkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-01-31 19:00:21 +0000
commitdaa692b64776f1e2552a198ae786d2e5f3b50620 (patch)
tree3933adefa4171173db78fa2389146ac89f4edb86 /coreutils/uudecode.c
parent434f1b16e15a308f02d9fc1adc5fa1e483955fed (diff)
downloadbusybox-w32-daa692b64776f1e2552a198ae786d2e5f3b50620.tar.gz
busybox-w32-daa692b64776f1e2552a198ae786d2e5f3b50620.tar.bz2
busybox-w32-daa692b64776f1e2552a198ae786d2e5f3b50620.zip
Removed trailing \n from error_msg{,_and_die} messages.
git-svn-id: svn://busybox.net/trunk/busybox@1732 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/uudecode.c')
-rw-r--r--coreutils/uudecode.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/coreutils/uudecode.c b/coreutils/uudecode.c
index fcfcfd903..cccc52872 100644
--- a/coreutils/uudecode.c
+++ b/coreutils/uudecode.c
@@ -46,7 +46,7 @@ static int read_stduu (const char *inname)
46 char *p; 46 char *p;
47 47
48 if (fgets (buf, sizeof(buf), stdin) == NULL) { 48 if (fgets (buf, sizeof(buf), stdin) == NULL) {
49 error_msg("%s: Short file\n", inname); 49 error_msg("%s: Short file", inname);
50 return FALSE; 50 return FALSE;
51 } 51 }
52 p = buf; 52 p = buf;
@@ -81,7 +81,7 @@ static int read_stduu (const char *inname)
81 81
82 if (fgets (buf, sizeof(buf), stdin) == NULL 82 if (fgets (buf, sizeof(buf), stdin) == NULL
83 || strcmp (buf, "end\n")) { 83 || strcmp (buf, "end\n")) {
84 error_msg("%s: No `end' line\n", inname); 84 error_msg("%s: No `end' line", inname);
85 return FALSE; 85 return FALSE;
86 } 86 }
87 87
@@ -131,7 +131,7 @@ static int read_base64 (const char *inname)
131 unsigned char *p; 131 unsigned char *p;
132 132
133 if (fgets (buf, sizeof(buf), stdin) == NULL) { 133 if (fgets (buf, sizeof(buf), stdin) == NULL) {
134 error_msg("%s: Short file\n", inname); 134 error_msg("%s: Short file", inname);
135 return FALSE; 135 return FALSE;
136 } 136 }
137 p = buf; 137 p = buf;
@@ -139,7 +139,7 @@ static int read_base64 (const char *inname)
139 if (memcmp (buf, "====", 4) == 0) 139 if (memcmp (buf, "====", 4) == 0)
140 break; 140 break;
141 if (last_data != 0) { 141 if (last_data != 0) {
142 error_msg("%s: data following `=' padding character\n", inname); 142 error_msg("%s: data following `=' padding character", inname);
143 return FALSE; 143 return FALSE;
144 } 144 }
145 145
@@ -161,14 +161,14 @@ static int read_base64 (const char *inname)
161 161
162 while ((b64_tab[*p] & '\100') != 0) 162 while ((b64_tab[*p] & '\100') != 0)
163 if (*p == '\n' || *p++ == '=') { 163 if (*p == '\n' || *p++ == '=') {
164 error_msg("%s: illegal line\n", inname); 164 error_msg("%s: illegal line", inname);
165 return FALSE; 165 return FALSE;
166 } 166 }
167 c2 = b64_tab[*p++]; 167 c2 = b64_tab[*p++];
168 168
169 while (b64_tab[*p] == '\177') 169 while (b64_tab[*p] == '\177')
170 if (*p++ == '\n') { 170 if (*p++ == '\n') {
171 error_msg("%s: illegal line\n", inname); 171 error_msg("%s: illegal line", inname);
172 return FALSE; 172 return FALSE;
173 } 173 }
174 if (*p == '=') { 174 if (*p == '=') {
@@ -180,7 +180,7 @@ static int read_base64 (const char *inname)
180 180
181 while (b64_tab[*p] == '\177') 181 while (b64_tab[*p] == '\177')
182 if (*p++ == '\n') { 182 if (*p++ == '\n') {
183 error_msg("%s: illegal line\n", inname); 183 error_msg("%s: illegal line", inname);
184 return FALSE; 184 return FALSE;
185 } 185 }
186 putchar (c1 << 2 | c2 >> 4); 186 putchar (c1 << 2 | c2 >> 4);
@@ -212,7 +212,7 @@ static int decode (const char *inname,
212 212
213 while (1) { 213 while (1) {
214 if (fgets (buf, sizeof (buf), stdin) == NULL) { 214 if (fgets (buf, sizeof (buf), stdin) == NULL) {
215 error_msg("%s: No `begin' line\n", inname); 215 error_msg("%s: No `begin' line", inname);
216 return FALSE; 216 return FALSE;
217 } 217 }
218 218
@@ -237,13 +237,13 @@ static int decode (const char *inname,
237 while (*p != '/') 237 while (*p != '/')
238 ++p; 238 ++p;
239 if (*p == '\0') { 239 if (*p == '\0') {
240 error_msg("%s: Illegal ~user\n", inname); 240 error_msg("%s: Illegal ~user", inname);
241 return FALSE; 241 return FALSE;
242 } 242 }
243 *p++ = '\0'; 243 *p++ = '\0';
244 pw = getpwnam (buf + 1); 244 pw = getpwnam (buf + 1);
245 if (pw == NULL) { 245 if (pw == NULL) {
246 error_msg("%s: No user `%s'\n", inname, buf + 1); 246 error_msg("%s: No user `%s'", inname, buf + 1);
247 return FALSE; 247 return FALSE;
248 } 248 }
249 n = strlen (pw->pw_dir); 249 n = strlen (pw->pw_dir);