wok-stable view fltk/stuff/fl_set_fonts_xft.patch @ rev 4542
gnome-mplayer: libgpod should be optional dependency (in SUGGESTED)
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Tue Dec 01 16:21:53 2009 +0000 (2009-12-01) |
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 {