From 65f7767a914144ae303f7b9ae81865061793dcb9 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Tue, 16 Sep 2014 11:17:04 +0200 Subject: Fix handling of collating elements in fnmatch (bug 17396, bug 16976) This fixes the same bug in fnmatch that was fixed by commit 7e2f0d2d77 for regexp matching. As a side effect it also removes the use of an unbound VLA. --- include/wchar.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/wchar.h') diff --git a/include/wchar.h b/include/wchar.h index 86506d28e9..614073bcb3 100644 --- a/include/wchar.h +++ b/include/wchar.h @@ -143,6 +143,8 @@ libc_hidden_proto (wmemchr) libc_hidden_proto (__wmemchr) libc_hidden_proto (wmemset) libc_hidden_proto (__wmemset) +extern int __wmemcmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n) + __THROW __attribute_pure__; /* Now define the internal interfaces. */ extern int __wcscasecmp (const wchar_t *__s1, const wchar_t *__s2) -- cgit v1.2.3