[hackers] [sbase] Use putchar() instead of fputc() in uuencode(1) || sin
commit b60882f2064e58c5e4cf98a2987e2d1022315ee4
Author: sin <sin_AT_2f30.org>
Date: Fri Jan 31 15:42:20 2014 +0000
Use putchar() instead of fputc() in uuencode(1)
diff --git a/uuencode.c b/uuencode.c
index a400180..3b7a716 100644
--- a/uuencode.c
+++ b/uuencode.c
_AT_@ -53,7 +53,7 @@ uuencode(FILE *fp, const char *name, const char *s)
fprintf(stdout, "begin %o %s
", st.st_mode & 0777, name);
while ((n = fread(buf, 1, 45, fp))) {
ch = ' ' + (n & 0x3f);
- fputc(ch == ' ' ? '`' : ch, stdout);
+ putchar(ch == ' ' ? '`' : ch);
for (p = buf; n > 0; n -= 3, p += 3) {
if (n < 3) {
p[2] = '
Received on Fri Jan 31 2014 - 16:44:04 CET
This archive was generated by hypermail 2.3.0
: Fri Jan 31 2014 - 16:48:12 CET