diff --git a/mozilla/mailnews/local/src/nsMailboxUrl.cpp b/mozilla/mailnews/local/src/nsMailboxUrl.cpp index d6a753b5072..5217010579a 100644 --- a/mozilla/mailnews/local/src/nsMailboxUrl.cpp +++ b/mozilla/mailnews/local/src/nsMailboxUrl.cpp @@ -90,7 +90,8 @@ static char *nsMailboxGetURI(char *nativepath) rv = server->GetLocalPath(&nativeServerPath); if (NS_FAILED(rv)) continue; - nsFilePath serverPath(nativeServerPath); + nsFileSpec spec(nativeServerPath); + nsFilePath serverPath(spec); PL_strfree(nativeServerPath); // check if filepath begins with serverPath