--- encfs/NameIO.cpp Wed Aug 6 08:35:05 2008 +++ encfs/NameIO.cpp Thu Aug 6 15:43:41 2009 @@ -190,7 +190,7 @@ } else { bool isDotFile = (*path == '.'); - char *next = strchr( path, '/' ); + const char *next = strchr( path, '/' ); int len = next ? next - path : strlen( path ); // at this point we know that len > 0