We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1698

Summary: XPM colors can be in upper case and/or lower case
Product: SDL_image Reporter: Sylvain <sylvain.becker>
Component: miscAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: trivial    
Priority: P2    
Version: unspecified   
Hardware: x86   
OS: Linux   

Description Sylvain 2013-01-21 05:33:52 UTC
Due to previous commits, there is a regression : some xpm does not load because of color name not found. 

You called "toupper" before, and now only using "SDL_strncmp" to look for xpm color name.

In a xpm file, colors can be in Lower and/or Upper case !
So, we need to call "SDL_strncasecmp".
Comment 1 Sam Lantinga 2013-02-08 01:09:45 UTC
Fixed, thanks!
http://hg.libsdl.org/SDL_image/rev/8d1b3611fc32