summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2019-08-21 18:59:15 +0200
committerraysan5 <[email protected]>2019-08-21 18:59:15 +0200
commit20fa362700cd5eefb9eeb196711dfbec5a73f8ab (patch)
treed2724b7763ba8f6987edae859576af81b1d96369 /src/core.c
parent20257f3e49a25430912330caa98e06b81b4276b3 (diff)
downloadraylib-20fa362700cd5eefb9eeb196711dfbec5a73f8ab.tar.gz
raylib-20fa362700cd5eefb9eeb196711dfbec5a73f8ab.zip
Review comment
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core.c b/src/core.c
index 40071205..4352a321 100644
--- a/src/core.c
+++ b/src/core.c
@@ -1811,10 +1811,10 @@ const char *GetFileName(const char *filePath)
return fileName + 1;
}
-// Get filename string without extension (memory should be freed)
+// Get filename string without extension (uses static string)
const char *GetFileNameWithoutExt(const char *filePath)
{
- #define MAX_FILENAMEWITHOUTEXT_LENGTH 64
+ #define MAX_FILENAMEWITHOUTEXT_LENGTH 128
static char fileName[MAX_FILENAMEWITHOUTEXT_LENGTH];
memset(fileName, 0, MAX_FILENAMEWITHOUTEXT_LENGTH);