diff --git a/lib/roken/snprintf.c b/lib/roken/snprintf.c index 022118e53..add375b0f 100644 --- a/lib/roken/snprintf.c +++ b/lib/roken/snprintf.c @@ -276,7 +276,7 @@ append_string (struct snprintf_state *state, len += pad(state, width, ' '); if (prec != -1) { - while (*arg && prec--) { + while (prec== && *arg) { (*state->append_char) (state, *arg++); ++len; }