From 9f6d4d0fcd56d6c67e5863faa344dc8d5148e5fc Mon Sep 17 00:00:00 2001 From: "mcmullen%netscape.com" Date: Sat, 20 Mar 1999 01:13:35 +0000 Subject: [PATCH] FIxing another unix problem. git-svn-id: svn://10.0.0.236/trunk@24522 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/base/src/nsFileSpec.cpp | 2 +- mozilla/xpcom/io/nsFileSpec.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/base/src/nsFileSpec.cpp b/mozilla/base/src/nsFileSpec.cpp index 3149de1f1f8..4a17e9c706c 100644 --- a/mozilla/base/src/nsFileSpec.cpp +++ b/mozilla/base/src/nsFileSpec.cpp @@ -622,7 +622,7 @@ nsFilePath::nsFilePath(const nsString& inString, PRBool inCreateDirs) //---------------------------------------------------------------------------------------- : mPath(inString) { - NS_ASSERTION(strstr(mPath, kFileURLPrefix) != mPath, "URL passed as path"); + NS_ASSERTION(strstr((const char*)mPath, kFileURLPrefix) != (const char*)mPath, "URL passed as path"); #ifdef XP_PC nsFileSpecHelpers::UnixToNative(mPath); diff --git a/mozilla/xpcom/io/nsFileSpec.cpp b/mozilla/xpcom/io/nsFileSpec.cpp index 3149de1f1f8..4a17e9c706c 100644 --- a/mozilla/xpcom/io/nsFileSpec.cpp +++ b/mozilla/xpcom/io/nsFileSpec.cpp @@ -622,7 +622,7 @@ nsFilePath::nsFilePath(const nsString& inString, PRBool inCreateDirs) //---------------------------------------------------------------------------------------- : mPath(inString) { - NS_ASSERTION(strstr(mPath, kFileURLPrefix) != mPath, "URL passed as path"); + NS_ASSERTION(strstr((const char*)mPath, kFileURLPrefix) != (const char*)mPath, "URL passed as path"); #ifdef XP_PC nsFileSpecHelpers::UnixToNative(mPath);