summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorlandry <landry@openbsd.org>2011-01-19 16:50:14 +0000
committerlandry <landry@openbsd.org>2011-01-19 16:50:14 +0000
commitaf136cd36b7bb0cf3b7f23cb9a1382f0dccf5137 (patch)
treef69365c319dd1e71034e86003b4f0b2ba596e0a4 /lib/libc
parentpatch from Henri Kemppainen: (diff)
downloadwireguard-openbsd-af136cd36b7bb0cf3b7f23cb9a1382f0dccf5137.tar.xz
wireguard-openbsd-af136cd36b7bb0cf3b7f23cb9a1382f0dccf5137.zip
Fix typo, %F pattern corresponds to %Y-%m-%d (the ISO 8601 date format),
not %Y/%m/%d. Found while debugging geo/gpx-viewer. ok millert@ jasper@
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/time/strptime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/time/strptime.c b/lib/libc/time/strptime.c
index 31baa6f0710..d3398d12aa8 100644
--- a/lib/libc/time/strptime.c
+++ b/lib/libc/time/strptime.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: strptime.c,v 1.13 2010/11/08 19:16:16 jasper Exp $ */
+/* $OpenBSD: strptime.c,v 1.14 2011/01/19 16:50:14 landry Exp $ */
/* $NetBSD: strptime.c,v 1.12 1998/01/20 21:39:40 mycroft Exp $ */
/*-
@@ -142,7 +142,7 @@ literal:
case 'F': /* The date as "%Y-%m-%d". */
_LEGAL_ALT(0);
- if (!(bp = _strptime(bp, "%Y/%m/%d", tm, 0)))
+ if (!(bp = _strptime(bp, "%Y-%m-%d", tm, 0)))
return (NULL);
continue;