diff options
author | jmallett <jmallett@FreeBSD.org> | 2002-03-19 02:05:27 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2002-03-19 02:05:27 +0000 |
commit | f350e5199028a467f0627b3c5ffc48112a060c0c (patch) | |
tree | f1f294a8270daf21a9e81aedb330182c45469b1c | |
parent | 505f3e0be89b99c2badc4058ab20e59267b33d64 (diff) | |
download | FreeBSD-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
-rw-r--r-- | usr.bin/uudecode/uudecode.c | 2 |
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"); } |