Mercurial > hg > th-libs
changeset 256:855f8dc6f123
Fix '%c' support.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 16 Feb 2016 22:27:00 +0200 |
parents | 7549e279fe18 |
children | d56369f65941 |
files | th_string.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/th_string.c Tue Feb 16 22:00:54 2016 +0200 +++ b/th_string.c Tue Feb 16 22:27:00 2016 +0200 @@ -301,7 +301,7 @@ return -104; case 'c': - if (padMode != 0 || width >= 0 || prec >= 0 || sign) + if (padMode != ' ' || width > 0 || prec >= 0 || sign) return -105; if ((ret = vputch(ctx, va_arg(ap, int))) == EOF)