From 76a28accfefaee1de5b6cc900d940165c4c17e47 Mon Sep 17 00:00:00 2001 From: "mcmullen%netscape.com" Date: Sat, 20 Mar 1999 00:13:08 +0000 Subject: [PATCH] Fix unix bustage. git-svn-id: svn://10.0.0.236/trunk@24505 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/base/src/unix/nsFileSpecUnix.cpp | 2 +- mozilla/xpcom/io/nsFileSpecUnix.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/base/src/unix/nsFileSpecUnix.cpp b/mozilla/base/src/unix/nsFileSpecUnix.cpp index 8b783a24d77..f6c2cf7b070 100644 --- a/mozilla/base/src/unix/nsFileSpecUnix.cpp +++ b/mozilla/base/src/unix/nsFileSpecUnix.cpp @@ -94,7 +94,7 @@ void nsFileSpecHelpers::Canonify(nsSimpleCharString& ioPath, PRBool inMakeDirs) strcat(buffer, ++lastSeparator); } } - if (!canonicalPath && *ioPath != '/' && !inMakeDirs) + if (!canonicalPath && ioPath[0] != '/' && !inMakeDirs) { // Well, if it's a relative path, hack it ourselves. canonicalPath = realpath(".", buffer); diff --git a/mozilla/xpcom/io/nsFileSpecUnix.cpp b/mozilla/xpcom/io/nsFileSpecUnix.cpp index 8b783a24d77..f6c2cf7b070 100644 --- a/mozilla/xpcom/io/nsFileSpecUnix.cpp +++ b/mozilla/xpcom/io/nsFileSpecUnix.cpp @@ -94,7 +94,7 @@ void nsFileSpecHelpers::Canonify(nsSimpleCharString& ioPath, PRBool inMakeDirs) strcat(buffer, ++lastSeparator); } } - if (!canonicalPath && *ioPath != '/' && !inMakeDirs) + if (!canonicalPath && ioPath[0] != '/' && !inMakeDirs) { // Well, if it's a relative path, hack it ourselves. canonicalPath = realpath(".", buffer);