summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/libc/time/wcsftime.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/time/wcsftime.c b/lib/libc/time/wcsftime.c
index ed0db3525d1..5760493a3a2 100644
--- a/lib/libc/time/wcsftime.c
+++ b/lib/libc/time/wcsftime.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wcsftime.c,v 1.1 2011/10/10 14:40:25 espie Exp $ */
+/* $OpenBSD: wcsftime.c,v 1.2 2013/01/20 20:29:02 millert Exp $ */
#include "private.h"
/*
@@ -505,6 +505,8 @@ label:
** character itself as printf(3) also does.
*/
default:
+ if (pt != ptlim)
+ *pt++ = *format;
break;
}
}