summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Schlyter <jakob@cvs.openbsd.org>2010-01-15 19:25:09 +0000
committerJakob Schlyter <jakob@cvs.openbsd.org>2010-01-15 19:25:09 +0000
commit0750724aad22dbb328e835a4fa0df8e2b0091004 (patch)
tree96860e62b56161213533c477c5d7103d340d1c5a
parentf05818a87147c8f103347d58b0f800c12015a33e (diff)
NSD v3.2.4
-rw-r--r--usr.sbin/nsd/compat/snprintf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/nsd/compat/snprintf.c b/usr.sbin/nsd/compat/snprintf.c
index 52429edf06d..674cc09c81d 100644
--- a/usr.sbin/nsd/compat/snprintf.c
+++ b/usr.sbin/nsd/compat/snprintf.c
@@ -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, ' ');