diff options
| author | Steve Price <steve@FreeBSD.org> | 1998-05-25 06:27:09 +0000 |
|---|---|---|
| committer | Steve Price <steve@FreeBSD.org> | 1998-05-25 06:27:09 +0000 |
| commit | c2fd2f2c1bfba6b9c402c60c5bd1cba6b51fc5f0 (patch) | |
| tree | 59880b06a4146f557cd6066943013a93cbc571fd /usr.bin | |
| parent | 2a30154f0523eea500eb2ae50fde1c69242b5175 (diff) | |
Notes
Diffstat (limited to 'usr.bin')
| -rw-r--r-- | usr.bin/uudecode/uudecode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/uudecode/uudecode.c b/usr.bin/uudecode/uudecode.c index a1489c775e19c..bb01770f05b85 100644 --- a/usr.bin/uudecode/uudecode.c +++ b/usr.bin/uudecode/uudecode.c @@ -42,7 +42,7 @@ static const char copyright[] = static char sccsid[] = "@(#)uudecode.c 8.2 (Berkeley) 4/2/94"; #endif static const char rcsid[] = - "$Id: uudecode.c,v 1.10 1997/09/18 14:07:26 phk Exp $"; + "$Id: uudecode.c,v 1.11 1998/01/25 19:25:54 wosch Exp $"; #endif /* not lint */ /* @@ -158,7 +158,7 @@ decode2(flag) } while (strncmp(buf, "begin ", 6) || fnmatch("begin [0-7]* *", buf, 0)); - (void)sscanf(buf, "begin %o %s", &mode, buf); + (void)sscanf(buf, "begin %o %[^\n\r]", &mode, buf); if (!sflag && !pflag) { strncpy(buffn, buf, sizeof(buffn)); |
