mirror of
git://git.musl-libc.org/musl
synced 2025-03-06 20:48:29 +01:00
fix MUSL_LOCPATH search
all path elements but the last had the final byte truncated.
This commit is contained in:
parent
d49cf07541
commit
9d4b25b473
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ const struct __locale_map *__get_locale(int cat, const char *val)
|
|||
|
||||
if (path) for (; *path; path=z+!!*z) {
|
||||
z = __strchrnul(path, ':');
|
||||
l = z - path - !!*z;
|
||||
l = z - path;
|
||||
if (l >= sizeof buf - n - 2) continue;
|
||||
memcpy(buf, path, l);
|
||||
buf[l] = '/';
|
||||
|
|
Loading…
Add table
Reference in a new issue