freezing nsIFile/nsILocalFile API (b=129279)
r=dougt sr=alecf git-svn-id: svn://10.0.0.236/trunk@121410 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1611,7 +1611,7 @@ convert_native_to_ucs2(const char *input, unsigned inputLen, nsAString &result)
|
||||
result.Truncate();
|
||||
|
||||
// allocate space for largest possible result
|
||||
result.SetCapacity(inputLen + 1);
|
||||
result.SetLength(inputLen);
|
||||
|
||||
nsAString::iterator start;
|
||||
result.BeginWriting(start);
|
||||
|
||||
Reference in New Issue
Block a user