aboutsummaryrefslogtreecommitdiff
path: root/toys/pending/uuencode.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2013-03-22 00:26:12 -0500
committerRob Landley <rob@landley.net>2013-03-22 00:26:12 -0500
commit64427a889b424c55e6917e5110e66ba004610fa9 (patch)
treec3ff3f4d1e0c9fbea6b3b545d893c0ee5550691f /toys/pending/uuencode.c
parent5cb3e2683bd8ca23bf8c38e13f3e0d68a642d586 (diff)
downloadtoybox-64427a889b424c55e6917e5110e66ba004610fa9.tar.gz
uuencode/decode tests and tweaks from Erich Plondke.
Diffstat (limited to 'toys/pending/uuencode.c')
-rw-r--r--toys/pending/uuencode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/pending/uuencode.c b/toys/pending/uuencode.c
index d6cc5ad2..277cefac 100644
--- a/toys/pending/uuencode.c
+++ b/toys/pending/uuencode.c
@@ -57,7 +57,7 @@ static void uuencode_b64(int fd, const char *name)
xprintf("begin-base64 744 %s\n",name);
do {
len = xread(fd,inbuf,48);
- uuencode_b64_line(outbuf,inbuf,len);
+ if (len > 0) uuencode_b64_line(outbuf,inbuf,len);
} while (len > 0);
xprintf("====\n");
}