mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-28 23:49:44 +08:00
commit
fe8a7d8db9
@ -3280,6 +3280,7 @@ size_t mg_vprintf(struct mg_connection *c, const char *fmt, va_list ap) {
|
|||||||
va_list tmp;
|
va_list tmp;
|
||||||
va_copy(tmp, ap);
|
va_copy(tmp, ap);
|
||||||
mg_vxprintf(mg_pfn_iobuf, &c->send, fmt, &tmp);
|
mg_vxprintf(mg_pfn_iobuf, &c->send, fmt, &tmp);
|
||||||
|
va_end(tmp);
|
||||||
return c->send.len - old;
|
return c->send.len - old;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,6 +10,7 @@ size_t mg_vprintf(struct mg_connection *c, const char *fmt, va_list ap) {
|
|||||||
va_list tmp;
|
va_list tmp;
|
||||||
va_copy(tmp, ap);
|
va_copy(tmp, ap);
|
||||||
mg_vxprintf(mg_pfn_iobuf, &c->send, fmt, &tmp);
|
mg_vxprintf(mg_pfn_iobuf, &c->send, fmt, &tmp);
|
||||||
|
va_end(tmp);
|
||||||
return c->send.len - old;
|
return c->send.len - old;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user