mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-01 07:28:30 +00:00
use of SDL functions
This commit is contained in:
@@ -52,8 +52,8 @@ static void recursive_mkdir(const char *dir)
|
||||
char *p = NULL;
|
||||
size_t len;
|
||||
|
||||
snprintf(tmp, sizeof(tmp), "%s", dir);
|
||||
len = strlen(tmp);
|
||||
SDL_snprintf(tmp, sizeof(tmp), "%s", dir);
|
||||
len = SDL_strlen(tmp);
|
||||
if (tmp[len - 1] == '/') {
|
||||
tmp[len - 1] = 0;
|
||||
}
|
||||
@@ -62,7 +62,7 @@ static void recursive_mkdir(const char *dir)
|
||||
if (*p == '/') {
|
||||
*p = 0;
|
||||
// Just creating subfolders from current path
|
||||
if (strstr(tmp, base) != NULL) {
|
||||
if (SDL_strstr(tmp, base) != NULL) {
|
||||
mkdir(tmp, S_IRWXU);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user