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:
parent
0698c5169f
commit
e1f4154d75
3 changed files with 52 additions and 11 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue