提交 536db2b5 编写于 作者: R Rich Felker

fix bugs in strptime handling of string day/month names, literals

上级 ca19774c
......@@ -18,6 +18,7 @@ char *strptime(const char *s, const char *f, struct tm *tm)
else if (*s != *f) return 0;
else s++;
f++;
continue;
}
f++;
if (*f == '+') f++;
......@@ -165,6 +166,7 @@ char *strptime(const char *s, const char *f, struct tm *tm)
ex = nl_langinfo(min+i);
len = strlen(ex);
if (strncasecmp(s, ex, len)) continue;
s += len;
*dest = i % range;
break;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册