When reading XPMs, don't parse more than 2 hex digits

in \xff style escape sequences.

Also, 10000'th commit. :P



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10000 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Greg Ercolano 2013-10-20 22:35:31 +00:00
parent da737bb10b
commit a5f2ef5ccd

View File

@ -74,7 +74,7 @@ Fl_XPM_Image::Fl_XPM_Image(const char *name) : Fl_Pixmap((char *const*)0) {
case 'x': {
q++;
int n = 0;
for (int x = 0; x < 3; x++) {
for (int x = 0; x < 2; x++) {
int xd = hexdigit(*q);
if (xd > 15) break;
n = (n<<4)+xd;