Terminate version string
This cl doesn't directly solve b/6750185, but it's a potential bug if string is not terminated correctly BUG= TEST=vie_auto_test Review URL: https://webrtc-codereview.appspot.com/674009 git-svn-id: http://webrtc.googlecode.com/svn/trunk@2515 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
71707aaae8
commit
6c08f26c4e
@ -409,6 +409,7 @@ int ViEBaseImpl::GetVersion(char version[1024]) {
|
||||
int version_length = version_stream.tellp();
|
||||
assert(version_length < 1024);
|
||||
memcpy(version, version_stream.str().c_str(), version_length);
|
||||
version[version_length] = '\0';
|
||||
|
||||
WEBRTC_TRACE(kTraceStateInfo, kTraceVideo,
|
||||
ViEId(shared_data_.instance_id()), "GetVersion() => %s",
|
||||
|
Loading…
x
Reference in New Issue
Block a user