core, make system detection by extension case insensitive

This commit is contained in:
kub 2023-03-26 10:35:39 +00:00
parent ac89144969
commit c7e1c39b28
3 changed files with 7 additions and 7 deletions

View file

@ -61,7 +61,7 @@ static void *open_save_file(const char *fname, int is_save)
int len = strlen(fname);
void *afile = NULL;
if (len > 3 && strcmp(fname + len - 3, ".gz") == 0)
if (len > 3 && strcasecmp(fname + len - 3, ".gz") == 0)
{
if ( (afile = gzopen(fname, is_save ? "wb" : "rb")) ) {
set_cbs(1);