--- encfs-1.5-orig/encfs/NameIO.cpp 2009-10-27 21:58:02.307752841 +0100 +++ encfs-1.5/encfs/NameIO.cpp 2009-10-27 21:59:52.115658074 +0100 @@ -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