use of SDL functions

This commit is contained in:
Sylvain
2023-06-25 22:46:54 +02:00
committed by Sam Lantinga
parent 87e916dd21
commit 95727b5c7d
5 changed files with 10 additions and 10 deletions

View File

@@ -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);
}