Chromium Code Reviews
DescriptionAccount for '\0' string terminator in allocated buffers.
OS::SNPrint takes a size in bytes argument that includes the null
terminator, it returns the number of characters printed not including
the null terminator. Unfortunately we don't have a uniform way of
writing this.
This change fixes three sites that do not account for the terminator
when writing, with the effect of dropping the last character before
the terminator.
R=srdjan@google.com
BUG=
Committed: https://code.google.com/p/dart/source/detail?r=10329
Patch Set 1 #
Total comments: 2
Messages
Total messages: 3 (0 generated)
|
|||||||||||||||||||