- Fix -o option that was broken by my clang compile fix
Submitted by: Oleg Moskalenko <oleg.moskalenko@citrix.com>
This commit is contained in:
parent
ce0080980c
commit
f50d9b2ffb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=235546
@ -1049,9 +1049,8 @@ main(int argc, char **argv)
|
||||
sort_opts_vals.mflag = true;
|
||||
break;
|
||||
case 'o':
|
||||
outfile = sort_realloc(outfile, sizeof(char) *
|
||||
(strlen(optarg) + 1));
|
||||
strlcpy(outfile, optarg, strlen(outfile));
|
||||
outfile = sort_realloc(outfile, (strlen(optarg) + 1));
|
||||
strcpy(outfile, optarg);
|
||||
break;
|
||||
case 's':
|
||||
sort_opts_vals.sflag = true;
|
||||
|
Loading…
Reference in New Issue
Block a user