From 2d68a168a9447bd88e05ea7039492b873f014f3c Mon Sep 17 00:00:00 2001 From: Frederic Crozat <fcrozat@mandriva.com> Date: Wed, 12 Aug 2009 11:40:04 +0200 Subject: [PATCH] fix missing const --- encfs/NameIO.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/encfs/NameIO.cpp b/encfs/NameIO.cpp index 988bd78..a13694f 100644 --- a/encfs/NameIO.cpp +++ b/encfs/NameIO.cpp @@ -190,7 +190,7 @@ std::string NameIO::recodePath( const char *path, } 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 -- 1.6.4