Index: lib/libc/stdtime/strptime.c =================================================================== --- lib/libc/stdtime/strptime.c (revision 272441) +++ lib/libc/stdtime/strptime.c (working copy) @@ -103,8 +103,6 @@ ptr = fmt; while (*ptr != 0) { - if (*buf == 0) - break; c = *ptr++; @@ -123,7 +121,6 @@ label: c = *ptr++; switch (c) { - case 0: case '%': if (*buf++ != '%') return (NULL); @@ -599,6 +596,9 @@ while (isspace_l((unsigned char)*buf, locale)) buf++; break; + + default: + return (NULL); } }