chiark
/
gitweb
/
~mdw
/
mLib
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d8fe3fc
)
(dstr_vputf): Don't try calling @va_arg@ on things @char@-sized.
author
mdw
<mdw>
Tue, 15 Aug 2000 21:26:45 +0000
(21:26 +0000)
committer
mdw
<mdw>
Tue, 15 Aug 2000 21:26:45 +0000
(21:26 +0000)
dputf.c
patch
|
blob
|
blame
|
history
diff --git
a/dputf.c
b/dputf.c
index 9c827bc20d9d95e8d29bac713569032daec73551..d78851ffbd10ab1e072c3f9013d5884cdf69fc4e 100644
(file)
--- a/
dputf.c
+++ b/
dputf.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-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
*
*
* `printf'-style formatting for dynamic strings
*
@@
-30,6
+30,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: dputf.c,v $
/*----- 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.
*
* 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,
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': {
goto formatted;
case 's': {