diff options
Diffstat (limited to 'src/pal/inc/mbusafecrt.h')
-rw-r--r-- | src/pal/inc/mbusafecrt.h | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/src/pal/inc/mbusafecrt.h b/src/pal/inc/mbusafecrt.h index c25676c499..8cf050f419 100644 --- a/src/pal/inc/mbusafecrt.h +++ b/src/pal/inc/mbusafecrt.h @@ -31,16 +31,6 @@ typedef int errno_t; // define the return value for success #define SAFECRT_SUCCESS 0 -/* - * Sizes for buffers used by the _makepath() and _splitpath() functions. - * note that the sizes include space for 0-terminator - */ -//#define _MAX_PATH 260 /* max. length of full pathname */ -//#define _MAX_DRIVE 3 /* max. length of drive component */ -//#define _MAX_DIR 256 /* max. length of path component */ -//#define _MAX_FNAME 256 /* max. length of file name component */ -//#define _MAX_EXT 256 /* max. length of extension component */ - #ifdef __cplusplus extern "C" { #endif @@ -65,7 +55,7 @@ extern WCHAR* wcstok_s( WCHAR* inString, const WCHAR* inControl, WCHAR** ioConte // strnlen is not required unless the source string is completely untrusted (e.g. anonymous input on a website) #ifndef SUPPRESS_STRNLEN - extern size_t strnlen( const char* inString, size_t inMaxSize ); + extern size_t PAL_strnlen( const char* inString, size_t inMaxSize ); extern size_t wcsnlen( const WCHAR* inString, size_t inMaxSize ); #endif @@ -96,10 +86,10 @@ extern int swprintf_s( WCHAR *string, size_t sizeInWords, const WCHAR *format, . extern int _snprintf_s( char *string, size_t sizeInBytes, size_t count, const char *format, ... ); extern int _snwprintf_s( WCHAR *string, size_t sizeInWords, size_t count, const WCHAR *format, ... ); -extern int _vsprintf_s( char* string, size_t sizeInBytes, const char* format, va_list arglist ); +extern int vsprintf_s( char* string, size_t sizeInBytes, const char* format, va_list arglist ); extern int _vsnprintf_s( char* string, size_t sizeInBytes, size_t count, const char* format, va_list arglist ); -extern int _vswprintf_s( WCHAR* string, size_t sizeInWords, const WCHAR* format, va_list arglist ); +extern int vswprintf_s( WCHAR* string, size_t sizeInWords, const WCHAR* format, va_list arglist ); extern int _vsnwprintf_s( WCHAR* string, size_t sizeInWords, size_t count, const WCHAR* format, va_list arglist ); extern int sscanf_s( const char *string, const char *format, ... ); |