changeset 367:dfd1e7b3bf2a

Zero padding is done differently, so do not hand TH_PF_ZERO here.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 29 Feb 2016 12:00:23 +0200
parents 21bbb2dc4fac
children 51a04243a5f6
files th_string.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/th_string.c	Mon Feb 29 11:58:43 2016 +0200
+++ b/th_string.c	Mon Feb 29 12:00:23 2016 +0200
@@ -212,7 +212,7 @@
     if (f_sign && (f_flags & TH_PF_ZERO) && (ret = vputch(ctx, f_sign)) == EOF)
         return ret;
 
-    if ((ret = th_printf_pad_pre(ctx, vputch, nwidth, f_flags, (f_flags & TH_PF_ZERO) ? '0' : ' ')) == EOF)
+    if ((ret = th_printf_pad_pre(ctx, vputch, nwidth, f_flags, ' ')) == EOF)
         return ret;
 
     if (f_altstr && (ret = th_printf_vput_pstr(ctx, vputch, f_altstr)) == EOF)