Allow spaces in the filename to be decoded to.

PR:		4882
Submitted by:	Slaven Rezic <eserte@cs.tu-berlin.de>
This commit is contained in:
Steve Price 1998-05-25 06:27:09 +00:00
parent 2a30154f05
commit c2fd2f2c1b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=36355

View File

@ -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));