From e1f4154d75a4ad7f376228b6990860c1994be2be Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Sun, 19 Oct 2008 16:10:46 +0000 Subject: Fix a bug in estream_snprintf. Found by a failed t-gettime under Windows. --- common/t-gettime.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'common/t-gettime.c') diff --git a/common/t-gettime.c b/common/t-gettime.c index 5cc78ff35..a4401d8ae 100644 --- a/common/t-gettime.c +++ b/common/t-gettime.c @@ -75,7 +75,12 @@ test_isotime2epoch (void) { epoch2isotime (tbuf, val); if (strlen (tbuf) != 15) - fail (idx); + { + if (verbose) + fprintf (stderr, "string `%s', time-t %ld, revert: `%s'\n", + array[idx].string, (long)val, tbuf); + fail (idx); + } if (strncmp (array[idx].string, tbuf, 15)) fail (idx); } -- cgit v1.2.3