sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit 31894adad272f50410e8871e8cac16e9475b2c12
parent cb5733ea414e36d179f44c2aa04b606321a9197e
Author: sin <sin@2f30.org>
Date:   Fri, 31 Jan 2014 15:53:46 +0000

Use printf() instead of fprintf() in uuencode(1)

Diffstat:
Muuencode.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/uuencode.c b/uuencode.c @@ -50,7 +50,7 @@ uuencode(FILE *fp, const char *name, const char *s) if (fstat(fileno(fp), &st) < 0) eprintf("fstat %s:", s); - fprintf(stdout, "begin %o %s\n", st.st_mode & 0777, name); + printf("begin %o %s\n", st.st_mode & 0777, name); while ((n = fread(buf, 1, sizeof(buf), fp))) { ch = ' ' + (n & 0x3f); putchar(ch == ' ' ? '`' : ch); @@ -73,5 +73,5 @@ uuencode(FILE *fp, const char *name, const char *s) } if (ferror(fp)) eprintf("'%s' read error:", s); - fprintf(stdout, "%c\nend\n", '`'); + printf("%c\nend\n", '`'); }