wok diff fltk/stuff/fl_set_fonts_xft.patch @ rev 5446
broadcom-wl: fix compile_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 05 12:48:19 2010 +0200 (2010-05-05) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/fltk/stuff/fl_set_fonts_xft.patch Wed May 05 12:48:19 2010 +0200 1.3 @@ -0,0 +1,19 @@ 1.4 +--- src/fl_set_fonts_xft.cxx 2009-03-04 10:58:49.000000000 +0000 1.5 ++++ src/fl_set_fonts_xft.cxx 2009-03-04 11:01:25.000000000 +0000 1.6 +@@ -253,13 +253,13 @@ 1.7 + // So the bit we want is up to the first comma - BUT some strings have 1.8 + // more than one name, separated by, guess what?, a comma... 1.9 + stop = start = first = 0; 1.10 +- stop = strchr((const char *)font, ','); 1.11 +- start = strchr((const char *)font, ':'); 1.12 ++ stop = strchr((char *)font, ','); 1.13 ++ start = strchr((char *)font, ':'); 1.14 + if ((stop) && (start) && (stop < start)) 1.15 + { 1.16 + first = stop + 1; // discard first version of name 1.17 + // find first comma *after* the end of the name 1.18 +- stop = strchr((const char *)start, ','); 1.19 ++ stop = strchr((char *)start, ','); 1.20 + } 1.21 + else 1.22 + {