Refactor __wrap_fprintf to delegate to __wrap_vfprintf

This commit is contained in:
J. Nick Koston
2026-03-25 12:44:59 -10:00
parent 4a842f8e83
commit 802dcdabca
+1 -2
View File
@@ -79,8 +79,7 @@ int __wrap_vfprintf(FILE *stream, const char *fmt, va_list ap) {
int __wrap_fprintf(FILE *stream, const char *fmt, ...) {
va_list ap;
va_start(ap, fmt);
char buf[PRINTF_BUFFER_SIZE];
int len = write_printf_buffer(stream, buf, vsnprintf(buf, sizeof(buf), fmt, ap));
int len = __wrap_vfprintf(stream, fmt, ap);
va_end(ap);
return len;
}