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:
parent
da737bb10b
commit
a5f2ef5ccd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user