Oops, restore missing piece of previous commit.

This commit is contained in:
Andrey A. Chernov 1996-04-25 18:14:11 +00:00
parent a0b037c2c7
commit 9137242c2c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=15385

View File

@ -172,7 +172,7 @@ decode()
}
}
}
if (!fgets(buf, sizeof(buf), stdin) || strcmp(buf, "end") || (buf[3] && buf[3] != '\n')) {
if (!fgets(buf, sizeof(buf), stdin) || strncmp(buf, "end", 3) || (buf[3] && buf[3] != '\n')) {
(void)fprintf(stderr, "uudecode: %s: no \"end\" line.\n",
filename);
return(1);