svn commit: r235546 - head/usr.bin/sort
Gabor Kovesdan
gabor at FreeBSD.org
Thu May 17 13:08:31 UTC 2012
Author: gabor
Date: Thu May 17 13:08:30 2012
New Revision: 235546
URL: http://svn.freebsd.org/changeset/base/235546
Log:
- Fix -o option that was broken by my clang compile fix
Submitted by: Oleg Moskalenko <oleg.moskalenko at citrix.com>
Modified:
head/usr.bin/sort/sort.c
Modified: head/usr.bin/sort/sort.c
==============================================================================
--- head/usr.bin/sort/sort.c Thu May 17 11:53:38 2012 (r235545)
+++ head/usr.bin/sort/sort.c Thu May 17 13:08:30 2012 (r235546)
@@ -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;
More information about the svn-src-all
mailing list