summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
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 78a21cc5..d55bcf3d 100644
--- a/src/core.c
+++ b/src/core.c
@@ -2351,14 +2351,14 @@ bool DirectoryExists(const char *dirPath)
return result;
}
-// Get pointer to extension for a filename string
+// Get pointer to extension for a filename string (includes the dot: .png)
const char *GetFileExtension(const char *fileName)
{
const char *dot = strrchr(fileName, '.');
if (!dot || dot == fileName) return NULL;
- return (dot + 1);
+ return dot;
}
// String pointer reverse break: returns right-most occurrence of charset in s