commit | 834ef7aff5695e79b1feeacfdc15eaba6a42cab9 | [log] [tgz] |
---|---|---|
author | Julien Ramseier <j.ramseier@gmail.com> | Tue Mar 21 12:30:45 2017 -0400 |
committer | Rich Felker <dalias@aerifal.cx> | Tue Mar 21 12:30:45 2017 -0400 |
tree | 66d1b64ab9b51447775bffd829ff017207907a53 | |
parent | 85dfab7eaf1624577ec6de8375fd771ef9b4672a [diff] |
fix processing of strptime %p format string pointer was not advanced after matching.
diff --git a/src/time/strptime.c b/src/time/strptime.c index da9e1f4..cff0a7c 100644 --- a/src/time/strptime.c +++ b/src/time/strptime.c
@@ -94,6 +94,7 @@ len = strlen(ex); if (!strncasecmp(s, ex, len)) { tm->tm_hour %= 12; + s += len; break; } ex = nl_langinfo(PM_STR); @@ -101,6 +102,7 @@ if (!strncasecmp(s, ex, len)) { tm->tm_hour %= 12; tm->tm_hour += 12; + s += len; break; } return 0;