From 0ec95ce74b97558cd98bfceec361cd5badf82cc3 Mon Sep 17 00:00:00 2001 From: "bsmedberg%covad.net" Date: Tue, 2 Aug 2005 11:15:13 +0000 Subject: [PATCH] Bustage fix from bug 302039 - STUPID /me needs to null-terminate manually constructed PRUnichar strings, as noted by jruderman --- toolkit/xre/nsAppRunner.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toolkit/xre/nsAppRunner.cpp b/toolkit/xre/nsAppRunner.cpp index 0d8aa1e6178c..24a70bd118c8 100644 --- a/toolkit/xre/nsAppRunner.cpp +++ b/toolkit/xre/nsAppRunner.cpp @@ -1250,8 +1250,8 @@ ProfileLockedDialog(nsILocalFile* aProfileDir, nsILocalFile* aProfileLocalDir, const PRUnichar* params[] = {appName.get(), appName.get()}; nsXPIDLString killMessage; - static const PRUnichar kRestartNoUnlocker[] = {'r','e','s','t','a','r','t','M','e','s','s','a','g','e','N','o','U','n','l','o','c','k','e','r'}; - static const PRUnichar kRestartUnlocker[] = {'r','e','s','t','a','r','t','M','e','s','s','a','g','e','U','n','l','o','c','k','e','r'}; + static const PRUnichar kRestartNoUnlocker[] = {'r','e','s','t','a','r','t','M','e','s','s','a','g','e','N','o','U','n','l','o','c','k','e','r','\0'}; + static const PRUnichar kRestartUnlocker[] = {'r','e','s','t','a','r','t','M','e','s','s','a','g','e','U','n','l','o','c','k','e','r','\0'}; sb->FormatStringFromName(aUnlocker ? kRestartUnlocker : kRestartNoUnlocker, params, 2, getter_Copies(killMessage));