aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/csup/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/csup/misc.c')
-rw-r--r--contrib/csup/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/csup/misc.c b/contrib/csup/misc.c
index ff9403e0c794..b97a54288036 100644
--- a/contrib/csup/misc.c
+++ b/contrib/csup/misc.c
@@ -204,7 +204,7 @@ rcsdatetotm(const char *revdate, struct tm *tm)
if (cp == NULL)
return (-1);
len = cp - revdate;
- if (len == 4)
+ if (len >= 4)
cp = strptime(revdate, "%Y.%m.%d.%H.%M.%S", tm);
else if (len == 2)
cp = strptime(revdate, "%y.%m.%d.%H.%M.%S", tm);