diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-05-29 21:07:23 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-05-29 21:07:23 +0000 |
commit | bb20e79332e9721466c8d3fa21aceff684679458 (patch) | |
tree | a9183fcec71a9fc76017ff5128e76d54e4138bf3 /usr.bin/uudecode/uudecode.c | |
parent | 1169ad39df71ae9cf29bf2c8de7ca99cfe0ac5b1 (diff) |
accept spaces in name
Diffstat (limited to 'usr.bin/uudecode/uudecode.c')
-rw-r--r-- | usr.bin/uudecode/uudecode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/uudecode/uudecode.c b/usr.bin/uudecode/uudecode.c index 8cab455214e..588534e0756 100644 --- a/usr.bin/uudecode/uudecode.c +++ b/usr.bin/uudecode/uudecode.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uudecode.c,v 1.4 1998/05/11 01:19:05 deraadt Exp $ */ +/* $OpenBSD: uudecode.c,v 1.5 1998/05/29 21:07:22 deraadt Exp $ */ /* $NetBSD: uudecode.c,v 1.6 1994/11/17 07:40:43 jtc Exp $ */ /*- @@ -42,7 +42,7 @@ char copyright[] = #if 0 static char sccsid[] = "@(#)uudecode.c 8.2 (Berkeley) 4/2/94"; #endif -static char rcsid[] = "$OpenBSD: uudecode.c,v 1.4 1998/05/11 01:19:05 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: uudecode.c,v 1.5 1998/05/29 21:07:22 deraadt Exp $"; #endif /* not lint */ /* @@ -115,7 +115,7 @@ decode() return(1); } } while (strncmp(buf, "begin ", 6)); - (void)sscanf(buf, "begin %o %1023s", &mode, buf); + (void)sscanf(buf, "begin %o %1023[^\n\r]", &mode, buf); /* handle ~user/file format */ if (buf[0] == '~') { |