From c2fd2f2c1bfba6b9c402c60c5bd1cba6b51fc5f0 Mon Sep 17 00:00:00 2001 From: Steve Price Date: Mon, 25 May 1998 06:27:09 +0000 Subject: [PATCH] Allow spaces in the filename to be decoded to. PR: 4882 Submitted by: Slaven Rezic --- usr.bin/uudecode/uudecode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/uudecode/uudecode.c b/usr.bin/uudecode/uudecode.c index a1489c775e19..bb01770f05b8 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));