Skip to content

Commit

Permalink
bugfix in snprintf compat %f functionality (unused in ldns, but fixed…
Browse files Browse the repository at this point in the history
… anyway)
  • Loading branch information
wcawijngaards committed Feb 9, 2010
1 parent 36b4b84 commit 6afdf51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compat/snprintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -671,15 +671,15 @@ static void fmtfp (char *buffer, size_t *currlen, size_t maxlen,
*/
dopr_outch (buffer, currlen, maxlen, '.');

while (fplace > 0)
dopr_outch (buffer, currlen, maxlen, fconvert[--fplace]);

while (zpadlen > 0)
{
dopr_outch (buffer, currlen, maxlen, '0');
--zpadlen;
}

while (fplace > 0)
dopr_outch (buffer, currlen, maxlen, fconvert[--fplace]);

while (padlen < 0)
{
dopr_outch (buffer, currlen, maxlen, ' ');
Expand Down

0 comments on commit 6afdf51

Please sign in to comment.