From 288ffe9254f75a10f07c4f0284afc7a180045d00 Mon Sep 17 00:00:00 2001 From: Bill McCloskey Date: Wed, 2 Feb 2011 10:22:32 -0800 Subject: [PATCH] Bug 630288 - Reduce stack usage of MiniDumpCallback (r=ted) --- toolkit/crashreporter/nsExceptionHandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toolkit/crashreporter/nsExceptionHandler.cpp b/toolkit/crashreporter/nsExceptionHandler.cpp index f914f518d61b..20e656e54970 100644 --- a/toolkit/crashreporter/nsExceptionHandler.cpp +++ b/toolkit/crashreporter/nsExceptionHandler.cpp @@ -338,14 +338,14 @@ bool MinidumpCallback(const XP_CHAR* dump_path, { bool returnValue = showOSCrashReporter ? false : succeeded; - XP_CHAR minidumpPath[XP_PATH_MAX]; + static XP_CHAR minidumpPath[XP_PATH_MAX]; int size = XP_PATH_MAX; XP_CHAR* p = Concat(minidumpPath, dump_path, &size); p = Concat(p, XP_PATH_SEPARATOR, &size); p = Concat(p, minidump_id, &size); Concat(p, dumpFileExtension, &size); - XP_CHAR extraDataPath[XP_PATH_MAX]; + static XP_CHAR extraDataPath[XP_PATH_MAX]; size = XP_PATH_MAX; p = Concat(extraDataPath, dump_path, &size); p = Concat(p, XP_PATH_SEPARATOR, &size);