punyabrata@webrtc.org
0ab521f754
Resolving a crash related to strncopy followed by a strcat
call. strncopy will not explicity copy or add a "\0" therefore strcat did not know where to append the "\n" which was causing an out of bounds crash. Because we are checking the length, strcpy should be good enough as it also copies the "\0". Please note that that I am pre-emptively adding 2 instead of 1 to the length to take into account of the \n that will be added later. Review URL: http://webrtc-codereview.appspot.com/253004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@857 4adac7df-926f-26a2-2b94-8c16560cd09d
Description
No description provided
Languages
C++
76%
C
16%
Python
2.3%
Java
2.1%
Objective-C++
1.5%
Other
1.9%