aboutsummaryrefslogtreecommitdiff
path: root/dlib
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2007-10-18 14:54:10 +0200
committerjcid <devnull@localhost>2007-10-18 14:54:10 +0200
commit79fd3c6bdeea3246bb624dba55f384fd39184103 (patch)
treeca6c08830d42409f9c11f404a3ae9c234e4f4d29 /dlib
parent9ab3912ac73bfeca7da77aa9463d758ee01659d2 (diff)
Fix a typing bug in patch...
Diffstat (limited to 'dlib')
-rw-r--r--dlib/dlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dlib/dlib.c b/dlib/dlib.c
index 9e831756..76b3dfa0 100644
--- a/dlib/dlib.c
+++ b/dlib/dlib.c
@@ -348,7 +348,7 @@ void dStr_vsprintfa (Dstr *ds, const char *format, va_list argp)
va_list argp2; /* Needed in case of looping on non-32bit arch */
while (1) {
va_copy(argp2, argp);
- n = vsnprintf(ds->str + ds->len, ds->sz - ds->len, format, argp);
+ n = vsnprintf(ds->str + ds->len, ds->sz - ds->len, format, argp2);
va_end(argp2);
if (n > -1 && n < ds->sz - ds->len) {
ds->len += n; /* Success! */