diff options
| author | Edwin Groothuis <edwin@FreeBSD.org> | 2010-10-19 21:05:22 +0000 |
|---|---|---|
| committer | Edwin Groothuis <edwin@FreeBSD.org> | 2010-10-19 21:05:22 +0000 |
| commit | 223ef9d219ba18812f101d3f86bc133e3284c203 (patch) | |
| tree | 0d70501f2578a5d66b542ee48f1aa7371b6fbb04 /lib/libc | |
| parent | 7fae71e92c305e60099450ca40529126f927dea5 (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/stdtime/strptime.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libc/stdtime/strptime.c b/lib/libc/stdtime/strptime.c index c7de35c0d686..f6d46905d914 100644 --- a/lib/libc/stdtime/strptime.c +++ b/lib/libc/stdtime/strptime.c @@ -408,6 +408,14 @@ label: if (strncasecmp(buf, tptr->month[i], len) == 0) break; + } + } + /* + * Try the abbreviated month name if the full name + * wasn't found and Oalternative was not requested. + */ + if (i == asizeof(tptr->month) && !Oalternative) { + for (i = 0; i < asizeof(tptr->month); i++) { len = strlen(tptr->mon[i]); if (strncasecmp(buf, tptr->mon[i], len) == 0) |
