From 61453b131e567ba305186a84c249f1add6c97e58 Mon Sep 17 00:00:00 2001 From: oblerion <82583559+oblerion@users.noreply.github.com> Date: Thu, 1 Feb 2024 14:58:49 +0100 Subject: [PATCH] Update rcore.c --- src/rcore.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rcore.c b/src/rcore.c index 0a9d57f92..0f4bd119c 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -1948,8 +1948,8 @@ const char *GetFileNameWithoutExt(const char *filePath) { if (filePath != NULL) { - const char *fileName = GetFileName(filePath); - int pos = (int)strlen(fileName); + const char *fileName = GetFileName(filePath); // get filename without path + int pos = (int)strlen(fileName); // get filename lenght for (int i = pos; i>0; i--) { if (fileName[i] == '.') @@ -1960,7 +1960,7 @@ const char *GetFileNameWithoutExt(const char *filePath) } return TextSubtext(fileName,0,pos); } - return ""; + return "\0"; } // Get directory for a given filePath