| Index: webkit/glue/glue_serialize.cc
|
| diff --git a/webkit/glue/glue_serialize.cc b/webkit/glue/glue_serialize.cc
|
| index caf37b45b62a4a98b8ebd28882bf27c9c9ff2c60..d0b9a866096930aeb76f131137547deaeec5e8c4 100644
|
| --- a/webkit/glue/glue_serialize.cc
|
| +++ b/webkit/glue/glue_serialize.cc
|
| @@ -191,7 +191,9 @@ inline WebString ReadString(const SerializeObject* obj) {
|
|
|
| // In version 2, the length field was the length in WebUChars.
|
| // In version 1 and 3 it is the length in bytes.
|
| - int bytes = ((obj->version == 2) ? length * sizeof(WebUChar) : length);
|
| + int bytes = length;
|
| + if (obj->version == 2)
|
| + bytes *= sizeof(WebUChar);
|
|
|
| const void* data;
|
| if (!ReadBytes(obj, &data, bytes))
|
|
|