1
0
mirror of git://git.suckless.org/sbase synced 2024-12-25 16:32:37 +00:00

Correct error message in uudecode(1)

This commit is contained in:
sin 2014-02-04 15:19:02 +00:00
parent 71461978f2
commit 136f2f3b60

View File

@ -204,5 +204,5 @@ uudecode(FILE *fp, FILE *outfp)
/* check for end or fail */ /* check for end or fail */
afgets(&bufb, &n, fp); afgets(&bufb, &n, fp);
if (strnlen(bufb, 3) < 3 || strncmp(bufb, "end", 3) != 0 || bufb[3] != '\n') if (strnlen(bufb, 3) < 3 || strncmp(bufb, "end", 3) != 0 || bufb[3] != '\n')
eprintf("valid uudecode footer \"end\" not found\n"); eprintf("invalid uudecode footer \"end\" not found\n");
} }