1
0
mirror of https://git.musl-libc.org/git/musl synced 2025-03-30 14:32:56 +03:00

timezone parser: fix iteration over search dir paths

try+l points to \0, so only one iteration was ever tried.
This commit is contained in:
rofl0r 2013-11-04 17:07:28 +00:00
parent 75be448958
commit 8db1652581

@ -162,7 +162,7 @@ static void do_tzset()
break;
memcpy(pathname, s, l+1);
pathname[l] = 0;
for (try=search; !map && *try; try+=l) {
for (try=search; !map && *try; try+=l+1) {
l = strlen(try);
memcpy(pathname-l, try, l);
map = __map_file(pathname-l, &map_size);