Remove leftovers from the vsnprintf check in malloc_vsnprintf
Commit 4eeb52f
removed vsnprintf validation, but left a now unused va_copy.
It so happens that MSVC doesn't support va_copy.
This commit is contained in:
parent
a19e87fbad
commit
08e2221e99
@ -288,7 +288,6 @@ malloc_vsnprintf(char *str, size_t size, const char *format, va_list ap)
|
|||||||
int ret;
|
int ret;
|
||||||
size_t i;
|
size_t i;
|
||||||
const char *f;
|
const char *f;
|
||||||
va_list tap;
|
|
||||||
|
|
||||||
#define APPEND_C(c) do { \
|
#define APPEND_C(c) do { \
|
||||||
if (i < size) \
|
if (i < size) \
|
||||||
@ -359,9 +358,6 @@ malloc_vsnprintf(char *str, size_t size, const char *format, va_list ap)
|
|||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
if (config_debug)
|
|
||||||
va_copy(tap, ap);
|
|
||||||
|
|
||||||
i = 0;
|
i = 0;
|
||||||
f = format;
|
f = format;
|
||||||
while (true) {
|
while (true) {
|
||||||
|
Loading…
Reference in New Issue
Block a user