wok-next view fltk/stuff/fl_set_fonts_xft.patch @ rev 5748
busybox: ensure mod is 4755
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jul 02 12:30:41 2010 +0200 (2010-07-02) |
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 {