# HG changeset patch # User Matti Hamalainen # Date 1456740023 -7200 # Node ID dfd1e7b3bf2a862098e70d8ae77865f967cf355c # Parent 21bbb2dc4fac5e19e08270f237d248579d3c265c Zero padding is done differently, so do not hand TH_PF_ZERO here. diff -r 21bbb2dc4fac -r dfd1e7b3bf2a th_string.c --- 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)