let t and n match zero or more whitespaces

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12964 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2003-10-04 05:15:29 +00:00
parent 7a45372a17
commit 7d3afe0d9b

View File

@@ -310,10 +310,8 @@ strptime (const char *buf, const char *format, struct tm *timeptr)
buf = s; buf = s;
break; break;
case 'n' : case 'n' :
if (*buf == '\n') while (isspace (*buf))
++buf; buf++;
else
return NULL;
break; break;
case 'p' : case 'p' :
ret = match_string (&buf, ampm); ret = match_string (&buf, ampm);
@@ -345,10 +343,8 @@ strptime (const char *buf, const char *format, struct tm *timeptr)
buf = s; buf = s;
break; break;
case 't' : case 't' :
if (*buf == '\t') while (isspace (*buf))
++buf; buf++;
else
return NULL;
break; break;
case 'T' : /* %H:%M:%S */ case 'T' : /* %H:%M:%S */
case 'X' : case 'X' :