Bug 212114: FormatStatusMessage broken for aStatusArg with more than two args. r=darin, sr=dbaron
This commit is contained in:
Родитель
5e4a9e7187
Коммит
e952bdfab9
|
@ -804,7 +804,7 @@ nsStringBundleService::FormatStatusMessage(nsresult aStatus,
|
|||
PRInt32 pos = args.FindChar('\n', offset);
|
||||
if (pos == -1)
|
||||
pos = args.Length();
|
||||
argArray[i] = ToNewUnicode(Substring(args, offset, pos));
|
||||
argArray[i] = ToNewUnicode(Substring(args, offset, pos - offset));
|
||||
if (argArray[i] == nsnull) {
|
||||
rv = NS_ERROR_OUT_OF_MEMORY;
|
||||
argCount = i - 1; // don't try to free uninitialized memory
|
||||
|
|
Загрузка…
Ссылка в новой задаче