projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
timezone parser: fix iteration over search dir paths
[musl]
/
src
/
time
/
__tz.c
diff --git
a/src/time/__tz.c
b/src/time/__tz.c
index
26f4ea4
..
b4358f7
100644
(file)
--- a/
src/time/__tz.c
+++ b/
src/time/__tz.c
@@
-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);