aboutsummaryrefslogtreecommitdiff
path: root/src/path.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/path.c')
-rw-r--r--src/path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/path.c b/src/path.c
index 2651b45..e2751a9 100644
--- a/src/path.c
+++ b/src/path.c
@@ -45,7 +45,7 @@ bool pw_stripext(char *name, size_t sz, char const *path, char const *ext) {
size_t plen = SDL_strlen(path);
size_t elen = SDL_strlen(ext);
size_t nlen = plen - elen;
- if (plen < elen || SDL_strcmp(path + nlen, ext)) {
+ if (plen < elen || SDL_strcasecmp(path + nlen, ext)) {
SDL_SetError("path does not have extension");
return false;
}