summaryrefslogtreecommitdiffstats
path: root/common/t-gettime.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2008-10-19 18:10:46 +0200
committerWerner Koch <wk@gnupg.org>2008-10-19 18:10:46 +0200
commite1f4154d75a4ad7f376228b6990860c1994be2be (patch)
treed094bbbf0a93df2d3c50ced06d8ce1a6d86ba296 /common/t-gettime.c
parentUse more warning options with modern GCCs. (diff)
downloadgnupg2-e1f4154d75a4ad7f376228b6990860c1994be2be.tar.xz
gnupg2-e1f4154d75a4ad7f376228b6990860c1994be2be.zip
Fix a bug in estream_snprintf. Found by a failed t-gettime under Windows.
Diffstat (limited to '')
-rw-r--r--common/t-gettime.c7
1 files changed, 6 insertions, 1 deletions
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);
}