From cfaa93c4182f3e0661853113d0d5475876b09a3b Mon Sep 17 00:00:00 2001 From: marcus Date: Sun, 19 Feb 2006 22:23:03 +0000 Subject: Fix a problem where Firefox creates its ~/.mozilla directory using stack garbage. PR: 92899 Submitted by: truckman --- .../files/patch-toolkit_xre_nsXREDirProvider.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 www/firefox/files/patch-toolkit_xre_nsXREDirProvider.cpp (limited to 'www/firefox/files') diff --git a/www/firefox/files/patch-toolkit_xre_nsXREDirProvider.cpp b/www/firefox/files/patch-toolkit_xre_nsXREDirProvider.cpp new file mode 100644 index 000000000000..0c5a07ab210d --- /dev/null +++ b/www/firefox/files/patch-toolkit_xre_nsXREDirProvider.cpp @@ -0,0 +1,19 @@ +--- toolkit/xre/nsXREDirProvider.cpp.orig Tue Oct 4 11:46:26 2005 ++++ toolkit/xre/nsXREDirProvider.cpp Sun Feb 5 23:54:31 2006 +@@ -820,6 +820,7 @@ + + char* appNameFolder = nsnull; + char profileFolderName[MAXPATHLEN] = "."; ++ char temp[MAXPATHLEN]; + + // Offset 1 for the outermost folder to make it hidden (i.e. using the ".") + char* writing = profileFolderName + 1; +@@ -829,7 +830,6 @@ + rv = localDir->AppendNative(nsDependentCString(profileFolderName)); + NS_ENSURE_SUCCESS(rv, rv); + +- char temp[MAXPATHLEN]; + GetProfileFolderName(temp, gAppData->name); + appNameFolder = temp; + } + -- cgit