Mercurial > hg > th-libs
changeset 322:78825ff74195
Rename a variable.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 23 Feb 2016 10:36:24 +0200 |
parents | f7d72b7bebf3 |
children | 63c5b1bf8b98 |
files | th_string.c |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/th_string.c Tue Feb 23 01:42:52 2016 +0200 +++ b/th_string.c Tue Feb 23 10:36:24 2016 +0200 @@ -225,7 +225,7 @@ static int th_printf_vput_str(th_printf_ctx *ctx, th_printf_vputch vputch, const char *str, int f_flags, const int f_width, const int f_prec) { - int nwidth, slen, ret = 0; + int nwidth, f_len, ret = 0; f_flags &= ~TH_PF_ZERO; @@ -233,17 +233,17 @@ if (str == NULL) str = "(null)"; - slen = strlen(str); - if (f_prec >= 0 && slen > f_prec) - slen = f_prec; + f_len = strlen(str); + if (f_prec >= 0 && f_len > f_prec) + f_len = f_prec; - nwidth = f_width - slen; + nwidth = f_width - f_len; // Prefix padding? if ((ret = th_printf_pad_pre(ctx, vputch, nwidth, f_flags)) == EOF) goto out; - while (*str && slen--) + while (*str && f_len--) { if ((ret = vputch(ctx, *str++)) == EOF) goto out;