From ec4dc0a93f3a701f36de82b938df618e5ecc48f8 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 31 Oct 2008 14:12:18 +0000 Subject: Pass a pointer to warn2 so the warn2 == IN_ALL would not be an always-false condition. From FreeBSD (delphij). --- lib/libc/time/strftime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libc/time') diff --git a/lib/libc/time/strftime.c b/lib/libc/time/strftime.c index 961773e0c59..f32626af6be 100644 --- a/lib/libc/time/strftime.c +++ b/lib/libc/time/strftime.c @@ -1,4 +1,4 @@ -/* $OpenBSD: strftime.c,v 1.18 2007/12/29 22:26:51 millert Exp $ */ +/* $OpenBSD: strftime.c,v 1.19 2008/10/31 14:12:17 millert Exp $ */ #include "private.h" /* @@ -227,7 +227,7 @@ label: { int warn2 = IN_SOME; - pt = _fmt(Locale->c_fmt, t, pt, ptlim, warnp); + pt = _fmt(Locale->c_fmt, t, pt, ptlim, &warn2); if (warn2 == IN_ALL) warn2 = IN_THIS; if (warn2 > *warnp) -- cgit v1.2.3