--- mozart-1.3.2.20060615.orig/platform/emulator/urlc.cc 2005-05-19 17:48:45.000000000 +0000 +++ mozart-1.3.2.20060615/platform/emulator/urlc.cc 2009-08-10 20:32:43.000000000 +0000 @@ -625,13 +625,13 @@ } port = 21; - p_collon = strchr(line, ':'); - p_at = strchr(line, '@'); + p_collon = strchr(const_cast(line), ':'); + p_at = strchr(const_cast(line), '@'); if(NULL != p_at) // we have a pass p_slash = strchr(p_at + 1, '/'); else - p_slash = strchr(line, '/'); - p_semi = strchr(line, ';'); // to avoid masking by pass + p_slash = strchr(const_cast(line), '/'); + p_semi = strchr(const_cast(line), ';'); // to avoid masking by pass // sanity checks if((NULL != p_collon) && (0 == p_collon[1])) @@ -1140,8 +1140,8 @@ if((NULL == line) || (0 == *line)) // emtpy line? return (URLC_EEMPTY); - p_collon = strchr(line, ':'); - p_slash = strchr(line, '/'); + p_collon = strchr(const_cast(line), ':'); + p_slash = strchr(const_cast(line), '/'); // sanity checks if((NULL != p_collon) && (0 == p_collon[1])) // nothing after :