Fix: get longest extension

This commit is contained in:
Nikita Ivanov 2022-05-24 02:40:46 +05:00
parent d989e5e99b
commit ebee69678b
No known key found for this signature in database
GPG Key ID: 6E656AC5B97B5133

2
ctpv.c
View File

@ -66,7 +66,7 @@ static const char *get_ext(char const *path)
else
base = path;
const char *dot = strrchr(path, '.');
const char *dot = strchr(base, '.');
if (!dot || dot == base)
return NULL;