small fix

This commit is contained in:
georgemoralis 2024-03-13 20:21:26 +02:00
parent 7764f13cce
commit 58bd5073c1

View file

@ -736,11 +736,11 @@ static int printf_ctx(VaCtx* ctx) {
return result;
}
static int fprintf_ctx(VaCtx* ctx,char *buf) {
static int fprintf_ctx(VaCtx* ctx, char* buf) {
const char* format = vaArgPtr<const char>(&ctx->va_list);
char buffer[256];
int result = _vsnprintf(_out_buffer, buffer, format, &ctx->va_list);
strcpy(buf, buffer);
std::strcpy(buf, buffer);
return result;
}