From 46774261d1898c39c2883cb9d872302cbeb265b3 Mon Sep 17 00:00:00 2001 From: ache Date: Thu, 25 Apr 1996 14:49:40 +0000 Subject: [PATCH] Treat ^end as valid terminator (like ^end\n), some encoders (f.e. Eudora) produce such things. --- usr.bin/uudecode/uudecode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/uudecode/uudecode.c b/usr.bin/uudecode/uudecode.c index af87847ab59a..17de5376b256 100644 --- a/usr.bin/uudecode/uudecode.c +++ b/usr.bin/uudecode/uudecode.c @@ -172,7 +172,7 @@ decode() } } } - if (!fgets(buf, sizeof(buf), stdin) || strcmp(buf, "end\n")) { + if (!fgets(buf, sizeof(buf), stdin) || strcmp(buf, "end") || (buf[3] && buf[3] != '\n')) { (void)fprintf(stderr, "uudecode: %s: no \"end\" line.\n", filename); return(1);