--- src/ViewWindow.cpp.gcc 2010-05-02 03:52:19.000000000 +0200 +++ src/ViewWindow.cpp 2010-05-02 03:52:33.000000000 +0200 @@ -655,7 +655,7 @@ { FXString buf=viewer->getText(); const char* text=buf.text(); - char *p = strstr(&text[pos],str.text()); + const char *p = strstr(&text[pos],str.text()); if(!p) return -1; return (p-text);