--- graphics/window.cpp
+++ graphics/window.cpp
@@ -398,7 +398,7 @@
*/
if(token)
{
- char *tok = strchr(txt, token);
+ const char *tok = strchr(txt, token);
if(tok)
tokpos = tok-txt;
else