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