Bustage fix from bug 302039 - STUPID /me needs to null-terminate manually constructed PRUnichar strings, as noted by jruderman

This commit is contained in:
bsmedberg%covad.net 2005-08-02 11:15:13 +00:00
Родитель 540f5dbf47
Коммит 0ec95ce74b
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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));