From 78ecb7f33fbb991884cbbd9a9e9c7e9b075a0386 Mon Sep 17 00:00:00 2001 From: Bill Lorensen Date: Tue, 24 Jun 2003 21:37:02 -0400 Subject: [PATCH] ERR: portability. --- Source/kwsys/SystemTools.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index 6b1327c59..a2df6e811 100644 --- a/Source/kwsys/SystemTools.cxx +++ b/Source/kwsys/SystemTools.cxx @@ -253,7 +253,7 @@ void SystemTools::ReplaceString(kwsys_std::string& source, const char* with) { const char *src = source.c_str(); - char *searchPos = strstr(src,replace); + char *searchPos = const_cast(strstr(src,replace)); // get out quick if string is not found if (!searchPos)