From cce7c7d782d1d2530e2d89114968e70a2a21eff9 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Fri, 1 Oct 2021 20:12:21 +0300 Subject: [PATCH] public: declare unsafe ParseFile as ParseFileLegacy --- public/crtlib.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/crtlib.h b/public/crtlib.h index 111c845d..ad1d7cc0 100644 --- a/public/crtlib.h +++ b/public/crtlib.h @@ -96,8 +96,8 @@ void COM_Hex2String( uint8_t hex, char *str ); #define COM_CheckString( string ) ( ( !string || !*string ) ? 0 : 1 ) #define COM_CheckStringEmpty( string ) ( ( !*string ) ? 0 : 1 ) const char *_COM_ParseFileSafe( const char *data, char *token, const int size, unsigned int flags, int *len ); -#define COM_ParseFileSafe( data, token, size ) _COM_ParseFileSafe( data, token, size, 0, NULL ) -#define COM_ParseFile( data, token ) COM_ParseFileSafe( data, token, -1 ) +#define COM_ParseFile( data, token, size ) _COM_ParseFileSafe( data, token, size, 0, NULL ) +#define COM_ParseFileLegacy( data, token ) COM_ParseFileSafe( data, token, INT_MAX ) int matchpattern( const char *in, const char *pattern, qboolean caseinsensitive ); int matchpattern_with_separator( const char *in, const char *pattern, qboolean caseinsensitive, const char *separators, qboolean wildcard_least_one );