Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fbce9e9

Browse files
Changed to use strcasecmp()
1 parent 5fe6093 commit fbce9e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

raspi2png.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ int main(int argc, char *argv[])
286286
size_t entry = 0;
287287
for (entry = 0; entry < imageEntries; entry++)
288288
{
289-
if (strcmp(imageTypeName, imageInfo[entry].name) == 0)
289+
if (strcasecmp(imageTypeName, imageInfo[entry].name) == 0)
290290
{
291291
imageType = imageInfo[entry].type;
292292
bytesPerPixel = imageInfo[entry].bytesPerPixel;

0 commit comments

Comments
 (0)