libc: Remove 'table' argument from call to collate_range_cmp() in __sccl().
commitf69bef86fb8f7697c008e987640aeab5ce7a9b9d
authorzrj <rimvydas.jasinskas@gmail.com>
Thu, 28 Dec 2017 12:30:07 +0000 (28 14:30 +0200)
committerzrj <zrj@dragonflybsd.org>
Sat, 30 Dec 2017 20:50:01 +0000 (30 22:50 +0200)
tree31c4d57d8f3a9f21973fd7f724fc9aac864b9a0b
parentbc18712b47db31b43d8deca33b3540dc5f20d1fe
libc: Remove 'table' argument from call to collate_range_cmp() in __sccl().

This prevents segfaults when called with say incomplete locale.
Introduce a separate wide variant of __wcollate_range_cmp() and use proper
variant were needed. The __sccl() does not use wchar_t types.
Also use '\0' instead of plain 0.

Similar change was done in FreeBSD.
lib/libc/gen/fnmatch.c
lib/libc/gen/glob.c
lib/libc/locale/collate.h
lib/libc/locale/collcmp.c
lib/libc/stdio/vfscanf.c