diff options
author | ache <ache@FreeBSD.org> | 2016-07-22 16:48:39 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2016-07-22 16:48:39 +0000 |
commit | b8e341f409b9eb1fc74af319fbf3118183ac8ecd (patch) | |
tree | 8af3259d8a2506e5a7d93bc0189a35f4f9caf6f1 /lib | |
parent | 3f56839b4888f5f2140b74ea536b9a0cee3a5084 (diff) | |
download | FreeBSD-src-b8e341f409b9eb1fc74af319fbf3118183ac8ecd.zip FreeBSD-src-b8e341f409b9eb1fc74af319fbf3118183ac8ecd.tar.gz |
Forget to merge this changes in prev. MFC
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/locale/collcmp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/locale/collcmp.c b/lib/libc/locale/collcmp.c index 4921e71..ce71a71 100644 --- a/lib/libc/locale/collcmp.c +++ b/lib/libc/locale/collcmp.c @@ -42,10 +42,12 @@ __FBSDID("$FreeBSD$"); int __collate_range_cmp(char c1, char c2) { - static char s1[2], s2[2]; + char s1[2], s2[2]; s1[0] = c1; + s1[1] = '\0'; s2[0] = c2; + s2[1] = '\0'; return (strcoll(s1, s2)); } |