diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2010-05-09 22:01:35 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2010-05-09 22:01:35 +0000 |
commit | 3d74e220a55da1824259b04b14b896199a402fd8 (patch) | |
tree | 4189b4155f98cf6d409be0916302eb4e57787a7e | |
parent | 757b9a68d7f354853d126b8a16557600ca5ab817 (diff) |
Notes
-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 51d41ed6b9b1..401350ee3d76 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) |