From f24e575c992d85544a3f88bd339e5426bce2f17c Mon Sep 17 00:00:00 2001 From: "dougt%netscape.com" Date: Mon, 24 Jan 2000 22:41:10 +0000 Subject: [PATCH] wtf. this is the wrong code. part of the nsIFile landing. git-svn-id: svn://10.0.0.236/trunk@58495 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/netwerk/base/src/nsStdURL.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mozilla/netwerk/base/src/nsStdURL.cpp b/mozilla/netwerk/base/src/nsStdURL.cpp index c74ea62dd97..94e95274913 100644 --- a/mozilla/netwerk/base/src/nsStdURL.cpp +++ b/mozilla/netwerk/base/src/nsStdURL.cpp @@ -1323,8 +1323,10 @@ nsStdURL::GetFile(nsIFile * *aFile) #endif // we need to make sure that the filepath is unescaped! - - char* escapedPath = (char*) nsAllocator::Clone((void*)(const char*)path,strlen(path)); + PRUint32 size; + + path.SizeOf(nsnull, &size); + char* escapedPath = (char*) nsAllocator::Clone((void*)(const char*)path,size); nsUnescape(escapedPath); nsCOMPtr localFile;