diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2015-03-19 15:20:47 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2015-03-19 15:20:47 +0000 |
commit | 6ea3dd392e6100a2934c9feb6fa0cf5811b30519 (patch) | |
tree | f261146d3cd6b60985090fe7074b304a9830e357 /usr.bin | |
parent | 36f12bbad066e55553b646a86c516c8b34cea8b6 (diff) |
Add back len = strlen(...) inadvertantly removed in the last commit.
Noticed by Andre Smagin.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/sort/bwstring.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/sort/bwstring.c b/usr.bin/sort/bwstring.c index 6e985f3587b..87c66394802 100644 --- a/usr.bin/sort/bwstring.c +++ b/usr.bin/sort/bwstring.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bwstring.c,v 1.3 2015/03/18 22:53:27 millert Exp $ */ +/* $OpenBSD: bwstring.c,v 1.4 2015/03/19 15:20:46 millert Exp $ */ /*- * Copyright (C) 2009 Gabor Kovesdan <gabor@FreeBSD.org> @@ -72,6 +72,7 @@ initialise_months(void) if (*tmp == '\0') continue; m = sort_strdup(tmp); + len = strlen(tmp); for (j = 0; j < len; j++) m[j] = toupper(m[j]); cmonths[i] = m; |