diff options
author | Werner Koch <wk@gnupg.org> | 2008-10-19 18:10:46 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2008-10-19 18:10:46 +0200 |
commit | e1f4154d75a4ad7f376228b6990860c1994be2be (patch) | |
tree | d094bbbf0a93df2d3c50ced06d8ce1a6d86ba296 /common/t-gettime.c | |
parent | Use more warning options with modern GCCs. (diff) | |
download | gnupg2-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.c | 7 |
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); } |