Mercurial > hg > th-libs
changeset 250:f4b541e0433e
Hmm .. fix %c handling.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 16 Feb 2016 19:05:00 +0200 |
parents | 35cfda75606b |
children | 7b76108248e9 |
files | th_string.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/th_string.c Tue Feb 16 18:39:31 2016 +0200 +++ b/th_string.c Tue Feb 16 19:05:00 2016 +0200 @@ -304,7 +304,8 @@ case 'c': if (padMode != 0 || width >= 0 || prec >= 0 || sign) return -105; - if ((ret = vputch(ctx, va_arg(ap, char)) == EOF) + + if ((ret = vputch(ctx, va_arg(ap, int))) == EOF) goto out; break;