From f350e5199028a467f0627b3c5ffc48112a060c0c Mon Sep 17 00:00:00 2001 From: jmallett Date: Tue, 19 Mar 2002 02:05:27 +0000 Subject: 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 --- usr.bin/uudecode/uudecode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.bin/uudecode/uudecode.c') 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"); } -- cgit v1.1