From 413d9c151bfb1a7954df4efe6df5b132fedb1a1f Mon Sep 17 00:00:00 2001 From: John Marino Date: Fri, 31 Jul 2015 13:23:18 +0200 Subject: [PATCH] libc/collcmp: Fix initialization of s2 --- lib/libc/locale/collcmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/locale/collcmp.c b/lib/libc/locale/collcmp.c index a73d782104..098c9f731e 100644 --- a/lib/libc/locale/collcmp.c +++ b/lib/libc/locale/collcmp.c @@ -48,7 +48,7 @@ int __collate_range_cmp(struct xlocale_collate *table, wchar_t c1, wchar_t c2) s1[0] = c1; s1[1] = 0; s2[0] = c2; - s2[0] = 0; + s2[1] = 0; struct _xlocale l = {{0}}; l.components[XLC_COLLATE] = (struct xlocale_component *)table; return (wcscoll_l(s1, s2, &l)); -- 2.41.0