wok view fltk/stuff/fl_set_fonts_xft.patch @ rev 5893

compcache: fix build with kernel 2.6.34
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Thu Jul 22 23:03:19 2010 +0200 (2010-07-22)
parents
children
line source
1 --- src/fl_set_fonts_xft.cxx 2009-03-04 10:58:49.000000000 +0000
2 +++ src/fl_set_fonts_xft.cxx 2009-03-04 11:01:25.000000000 +0000
3 @@ -253,13 +253,13 @@
4 // So the bit we want is up to the first comma - BUT some strings have
5 // more than one name, separated by, guess what?, a comma...
6 stop = start = first = 0;
7 - stop = strchr((const char *)font, ',');
8 - start = strchr((const char *)font, ':');
9 + stop = strchr((char *)font, ',');
10 + start = strchr((char *)font, ':');
11 if ((stop) && (start) && (stop < start))
12 {
13 first = stop + 1; // discard first version of name
14 // find first comma *after* the end of the name
15 - stop = strchr((const char *)start, ',');
16 + stop = strchr((char *)start, ',');
17 }
18 else
19 {