Get rid of va_copy

This commit is contained in:
cpq committed 2022-09-23 08:59:02 +01:00
1 parent 1237185bb4
commit ebd931f7af
9 files changed
+16 -51

No files matched your search

+1 -1
View File
@@ -540,7 +540,7 @@ static int fetch(struct mg_mgr *mgr, char *buf, const char *url,
}
// c->is_hexdumping = 1;
va_start(ap, fmt);
mg_vprintf(c, fmt, ap);
mg_vprintf(c, fmt, &ap);
va_end(ap);
buf[0] = '\0';
for (i = 0; i < 50 && buf[0] == '\0'; i++) mg_mgr_poll(mgr, 1);