aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/csup/misc.c
diff options
context:
space:
mode:
authorMaxime Henrion <mux@FreeBSD.org>2006-03-03 18:45:12 +0000
committerMaxime Henrion <mux@FreeBSD.org>2006-03-03 18:45:12 +0000
commit91be0d8ce36a3d2846486eb436ad4332e805009e (patch)
tree562536dafdb622ad161913edd00e6ff8c8c1433b /contrib/csup/misc.c
parentbb215397eea295477c3d8b6a058590abba067a9f (diff)
downloadsrc-91be0d8ce36a3d2846486eb436ad4332e805009e.tar.gz
src-91be0d8ce36a3d2846486eb436ad4332e805009e.zip
Import today's csup sources to get the warning fix for queue.h. Wevendor/csup/20060303
probably want to do something similar in sys/queue.h; it's bad to have STAILQ_LAST() generate GCC warnings.
Notes
Notes: svn path=/vendor/csup/dist/; revision=156251 svn path=/vendor/csup/20060303/; revision=156253; tag=vendor/csup/20060303
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);