X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/002eaee36ed12caf6cf7f2a7188111240a427d80..e12e2b8dd591943135faee8c57dd542ffe3fabd4:/dputf.c diff --git a/dputf.c b/dputf.c index 9c827bc..d78851f 100644 --- a/dputf.c +++ b/dputf.c @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: dputf.c,v 1.1 1999/10/04 21:44:47 mdw Exp $ + * $Id: dputf.c,v 1.2 2000/08/15 21:26:45 mdw Exp $ * * `printf'-style formatting for dynamic strings * @@ -30,6 +30,9 @@ /*----- Revision history --------------------------------------------------* * * $Log: dputf.c,v $ + * Revision 1.2 2000/08/15 21:26:45 mdw + * (dstr_vputf): Don't try calling @va_arg@ on things @char@-sized. + * * Revision 1.1 1999/10/04 21:44:47 mdw * Move `dstr_putf' and `dstr_vputf' into a separate source file. * @@ -217,7 +220,7 @@ int dstr_vputf(dstr *d, const char *p, va_list ap) sz = wd + 1; DENSURE(d, sz); d->len += sprintf(d->buf + d->len, dd.buf, - va_arg(ap, unsigned char)); + va_arg(ap, unsigned)); goto formatted; case 's': {