diff options
Diffstat (limited to 'src/pal/src/file/find.cpp')
-rw-r--r-- | src/pal/src/file/find.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/pal/src/file/find.cpp b/src/pal/src/file/find.cpp index 18639d3d14..18bf8c4cf1 100644 --- a/src/pal/src/file/find.cpp +++ b/src/pal/src/file/find.cpp @@ -383,7 +383,7 @@ FindNextFileA( // Split the path into a dir and filename. if (_splitpath_s(path, NULL, 0, find_data->dir, _MAX_DIR, find_data->fname, _MAX_PATH, ext, _MAX_EXT) != 0) { - ASSERT("_splitpath failed on %s\n", path); + ASSERT("_splitpath_s failed on %s\n", path); dwLastError = ERROR_INTERNAL_ERROR; goto done; } @@ -716,7 +716,7 @@ Simple helper function to insert backslashes before square brackets to prevent glob from using them as wildcards. note: this functions assumes all backslashes have previously been - converted into forwardslashes by _splitpath. + converted into forwardslashes by _splitpath_s. --*/ static void FILEEscapeSquareBrackets(char *pattern, char *escaped_pattern) { @@ -750,7 +750,7 @@ Function: FILEGlobFromSplitPath Simple wrapper function around glob(3), except that the pattern is accepted -in broken-down form like _splitpath produces. +in broken-down form like _splitpath_s produces. ie. calling splitpath on a pattern then calling this function should produce the same result as just calling glob() on the pattern. @@ -874,12 +874,12 @@ static BOOL FILEDosGlobA( CPalThread *pthrCurrent, _splitpath_s( pattern, NULL, 0, Dir, _MAX_DIR, Filename, _MAX_FNAME+1, Ext, _MAX_EXT); - /* check to see if _splitpath failed */ + /* check to see if _splitpath_s failed */ if ( Filename[0] == 0 ) { if ( Dir[0] == 0 ) { - ERROR("_splitpath failed on path [%s]\n", pattern); + ERROR("_splitpath_s failed on path [%s]\n", pattern); } else { |