From b44cea4ef2325b88218541f143dde0b4c014978a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sat, 4 Oct 2003 05:36:29 +0000 Subject: [PATCH] (str2time_t): allow whitespace between date and time From: Bob Beck and adharw@yahoo.com git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12965 ec53bebd-3082-4978-b11e-865c3cabbd6b --- kadmin/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kadmin/util.c b/kadmin/util.c index b5a32cc63..ff37aaa08 100644 --- a/kadmin/util.c +++ b/kadmin/util.c @@ -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;