1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

Fix a bug in estream_snprintf. Found by a failed t-gettime under Windows.

This commit is contained in:
Werner Koch 2008-10-19 16:10:46 +00:00
parent 0698c5169f
commit e1f4154d75
3 changed files with 52 additions and 11 deletions

View file

@ -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);
}