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:
@@ -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' :
|
||||
|
Reference in New Issue
Block a user