From 3c676ecee839e6b0a1e5c5d4b3524edcb0bd2a42 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Tue, 10 Mar 2015 15:23:02 -0700 Subject: Kill remaining sprintfs I thought I had done this already, apart from the third-party libraries, but there were a couple remaining (the third-party libraries will still call this, they should be tweaked upstream as needed). R=thestig@chromium.org Review URL: https://codereview.chromium.org/999543002 --- core/include/fxcrt/fx_system.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'core/include') diff --git a/core/include/fxcrt/fx_system.h b/core/include/fxcrt/fx_system.h index b31a60396b..a875da5f9c 100644 --- a/core/include/fxcrt/fx_system.h +++ b/core/include/fxcrt/fx_system.h @@ -139,11 +139,13 @@ typedef FX_UINT64 FX_QWORD; #define FX_PI 3.1415926535897932384626433832795f #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ #define FXSYS_snprintf _snprintf +#define FXSYS_vsnprintf _vsnprintf #else #define FXSYS_snprintf snprintf +#define FXSYS_vsnprintf vsnprintf #endif -#define FXSYS_sprintf sprintf -#define FXSYS_vsprintf vsprintf +#define FXSYS_sprintf DO_NOT_USE_SPRINTF_DIE_DIE_DIE +#define FXSYS_vsprintf DO_NOT_USE_VSPRINTF_DIE_DIE_DIE #define FXSYS_strchr strchr #define FXSYS_strlen strlen #define FXSYS_strncmp strncmp -- cgit v1.2.3