# HG changeset patch # User Matti Hamalainen # Date 1456216584 -7200 # Node ID 78825ff741953b838dc8bac6adf1df29e807473d # Parent f7d72b7bebf3e4853314fcae7ed29408f787948a Rename a variable. diff -r f7d72b7bebf3 -r 78825ff74195 th_string.c --- 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;