ignore case of filename extension.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1842 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
@@ -36,7 +36,7 @@ int is_image (char *filename)
|
||||
dot = strrchr(filename, '.');
|
||||
if (dot) {
|
||||
while (extension[x]) {
|
||||
if (strcmp(extension[x], dot+1)==0)
|
||||
if (strcasecmp(extension[x], dot+1)==0)
|
||||
return (1);
|
||||
x++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user