--- xosview-1.8.3/linux/lmstemp.cc.orig 2006-02-18 14:13:07.000000000 +0900 +++ xosview-1.8.3/linux/lmstemp.cc 2011-10-23 15:52:17.000000000 +0900 @@ -30,7 +30,7 @@ parent_->done(1); } char *p; - if ((p = strrchr(caption,'/')) != 0) + if ((p = const_cast(strrchr(caption,'/'))) != 0) _highest = atoi(p+1); else _highest = 100;