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:
@@ -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++ ) {
|
||||
|
||||
Reference in New Issue
Block a user