Clean up coverity warnings.
Review URL: https://webrtc-codereview.appspot.com/456003 git-svn-id: http://webrtc.googlecode.com/svn/trunk@1928 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
710401bab2
commit
1f569222b2
@ -2168,7 +2168,9 @@ void UdpTransportImpl::IncomingRTPFunction(const WebRtc_Word8* rtpPacket,
|
||||
information");
|
||||
}else
|
||||
{
|
||||
strncpy(_fromIP, ipAddress, kIpAddressVersion6Length);
|
||||
// Make sure ipAddress is null terminated.
|
||||
ipAddress[kIpAddressVersion6Length - 1] = 0;
|
||||
strncpy(_fromIP, ipAddress, kIpAddressVersion6Length - 1);
|
||||
}
|
||||
|
||||
// Filter based on port.
|
||||
@ -2226,7 +2228,9 @@ void UdpTransportImpl::IncomingRTCPFunction(const WebRtc_Word8* rtcpPacket,
|
||||
"UdpTransportImpl::IncomingRTCPFunction - Cannot get sender\
|
||||
information");
|
||||
}else {
|
||||
strncpy(_fromIP, ipAddress, kIpAddressVersion6Length);
|
||||
// Make sure ipAddress is null terminated.
|
||||
ipAddress[kIpAddressVersion6Length - 1] = 0;
|
||||
strncpy(_fromIP, ipAddress, kIpAddressVersion6Length - 1);
|
||||
}
|
||||
|
||||
// Filter based on port.
|
||||
|
Loading…
x
Reference in New Issue
Block a user