fixes bug 239405 "strchr, strrchr, etc. implicit const_cast can cause problems for shared string buffers" r=bienvenu sr=dbaron a=chofmann

git-svn-id: svn://10.0.0.236/trunk@154485 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
darin%meer.net
2004-04-03 17:16:17 +00:00
parent 4692d5179b
commit 6d7fab1144
13 changed files with 25 additions and 22 deletions

View File

@@ -1846,7 +1846,7 @@ nsLocalFile::IsExecutable(PRBool *_retval)
GetNativePath(path);
// Get extension.
char* ext = ::strrchr( path.get(), '.' );
char* ext = ::strrchr( path.BeginWriting(), '.' );
if ( ext ) {
// Convert extension to lower case.
for( char *p = ext; *p; p++ ) {