ZynAddSubFX: fixed compilation failure of FLTK

Fixed compilation failure of FLTK on broken systems where strchr()
takes a non-const char pointer.

Signed-off-by: Tobias Doerffel <tobias.doerffel@gmail.com>
(cherry picked from commit 3003163e9b)
This commit is contained in:
Tobias Doerffel
2009-06-01 00:42:57 +02:00
parent 0c8fdec27c
commit 6b71db0640

View File

@@ -271,13 +271,13 @@ Fl_Font Fl::set_fonts(const char* pattern_name)
// So the bit we want is up to the first comma - BUT some strings have
// more than one name, separated by, guess what?, a comma...
stop = start = first = 0;
stop = strchr((const char *)font, ',');
start = strchr((const char *)font, ':');
stop = strchr((char *)font, ',');
start = strchr((char *)font, ':');
if ((stop) && (start) && (stop < start))
{
first = stop + 1; // discard first version of name
// find first comma *after* the end of the name
stop = strchr((const char *)start, ',');
stop = strchr((char *)start, ',');
}
else
{