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