diff options
author | steve <steve@FreeBSD.org> | 1998-05-25 06:27:09 +0000 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1998-05-25 06:27:09 +0000 |
commit | 75cfd8e8c24f9fed2f2572f809bbae041a544e39 (patch) | |
tree | 7246b940a5ef7e24c9619f536c1b52228a8c34a1 /usr.bin | |
parent | 73c3aa98abf0b6a61d9695f2e3ff459be44e2c3b (diff) | |
download | FreeBSD-src-75cfd8e8c24f9fed2f2572f809bbae041a544e39.zip FreeBSD-src-75cfd8e8c24f9fed2f2572f809bbae041a544e39.tar.gz |
Allow spaces in the filename to be decoded to.
PR: 4882
Submitted by: Slaven Rezic <eserte@cs.tu-berlin.de>
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 a1489c7..bb01770 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)); |