From 7efeb3f29ded37a0784df09d0c8d3c385af08375 Mon Sep 17 00:00:00 2001 From: Kp Date: Sun, 8 Dec 2013 23:37:40 +0000 Subject: [PATCH] Use PHYSFSX_puts instead of PHYSFSX_printf where possible --- common/include/physfsx.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/include/physfsx.h b/common/include/physfsx.h index 01be1dc24..d330cc943 100644 --- a/common/include/physfsx.h +++ b/common/include/physfsx.h @@ -19,6 +19,7 @@ #include #endif +#include "fmtcheck.h" #include "dxxsconf.h" #include "pstypes.h" #include "strutil.h" @@ -199,6 +200,7 @@ static inline char * PHYSFSX_fgets(char (&buf)[n], PHYSFS_file *const fp) static inline int PHYSFSX_printf(PHYSFS_file *file, const char *format, ...) __attribute_format_printf(2, 3); static inline int PHYSFSX_printf(PHYSFS_file *file, const char *format, ...) +#define PHYSFSX_printf(A1,F,...) dxx_call_printf_checked(PHYSFSX_printf,PHYSFSX_puts,(A1),(F),##__VA_ARGS__) { char buffer[1024]; va_list args;