(str2time_t): allow whitespace between date and time

From: Bob Beck <beck@cvs.openbsd.org> and adharw@yahoo.com


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

View File

@@ -199,7 +199,7 @@ str2time_t (const char *str, time_t *t)
tm2.tm_min = 59;
tm2.tm_sec = 59;
if(strptime (p, "%H:%M:%S", &tm2) != NULL) {
if(strptime (p, "%t%H:%M:%S", &tm2) != NULL) {
tm.tm_hour = tm2.tm_hour;
tm.tm_min = tm2.tm_min;
tm.tm_sec = tm2.tm_sec;