提交 8db16525 编写于 作者: R rofl0r

timezone parser: fix iteration over search dir paths

try+l points to \0, so only one iteration was ever tried.
上级 75be4489
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册