summaryrefslogtreecommitdiffstats
path: root/usr.bin/uudecode/uudecode.c
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2002-03-19 02:05:27 +0000
committerjmallett <jmallett@FreeBSD.org>2002-03-19 02:05:27 +0000
commitf350e5199028a467f0627b3c5ffc48112a060c0c (patch)
treef1f294a8270daf21a9e81aedb330182c45469b1c /usr.bin/uudecode/uudecode.c
parent505f3e0be89b99c2badc4058ab20e59267b33d64 (diff)
downloadFreeBSD-src-f350e5199028a467f0627b3c5ffc48112a060c0c.zip
FreeBSD-src-f350e5199028a467f0627b3c5ffc48112a060c0c.tar.gz
Fix handling of filenames with spaces in them in the input file to
uudecode(1), as this behaviour was explicitly added in revision 1.12 as the result of PR 2882. Remove space (' ') from the delimiter characters handed to strtok(3). Reviewed by: mike Approved by: mike Pointy hat to: me
Diffstat (limited to 'usr.bin/uudecode/uudecode.c')
-rw-r--r--usr.bin/uudecode/uudecode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/uudecode/uudecode.c b/usr.bin/uudecode/uudecode.c
index af7fc4c..02502be 100644
--- a/usr.bin/uudecode/uudecode.c
+++ b/usr.bin/uudecode/uudecode.c
@@ -193,7 +193,7 @@ decode2(flag)
err(1, "strdup()");
}
if (!oflag) {
- outfile = strtok(NULL, " \r\n");
+ outfile = strtok(NULL, "\r\n");
if (outfile == NULL)
errx(1, "no filename in input file");
}
OpenPOWER on IntegriCloud