strftime(3) fix

Sascha Wildner saw at online.de
Thu Oct 30 21:16:03 UTC 2008


Hello,

please consider applying the following patch. It was recently committed 
to FreeBSD (see 
http://svn.freebsd.org/viewvc/base/head/lib/libc/stdtime/strftime.c?view=log&pathrev=184458).

--- strftime.c.orig	2008-10-30 22:09:54 +0100
+++ strftime.c	2008-10-30 22:11:23 +0100
@@ -216,7 +216,7 @@
  				{
  				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)

Regards,
Sascha




More information about the tz mailing list