--- src/ViewWindow.cpp Thu Sep 24 14:54:17 2009 +++ src/ViewWindow.cpp Thu Sep 24 14:55:42 2009 @@ -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);