Fix Windows build. My mistake for not trying it our prior to submitting.
Kudos to William Hesse for alarming me. TBR=sgjesse@chromium.org Review URL: http://codereview.chromium.org/214020 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2938 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
a0bf4c55c4
commit
ef246011e7
@ -316,7 +316,9 @@ void LogMessageBuilder::AppendStringPart(const char* str, int len) {
|
|||||||
ASSERT(len >= 0);
|
ASSERT(len >= 0);
|
||||||
if (len == 0) return;
|
if (len == 0) return;
|
||||||
}
|
}
|
||||||
strncpy(Log::message_buffer_ + pos_, str, len);
|
Vector<char> buf(Log::message_buffer_ + pos_,
|
||||||
|
Log::kMessageBufferSize - pos_);
|
||||||
|
OS::StrNCpy(buf, str, len);
|
||||||
pos_ += len;
|
pos_ += len;
|
||||||
ASSERT(pos_ <= Log::kMessageBufferSize);
|
ASSERT(pos_ <= Log::kMessageBufferSize);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user