diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 8e40d8e0a..5e6b854c2 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -1378,7 +1378,7 @@ struct cmSystemToolsGZStruct int cmSystemToolsGZStruct::Open(void* call_data, const char *pathname, int oflags, mode_t mode) { - char *gzoflags; + const char *gzoflags; int fd; cmSystemToolsGZStruct* gzf = static_cast(call_data); @@ -1449,10 +1449,10 @@ bool cmSystemTools::CreateTar(const char* outFileName, const std::vector