ANGLE: Stop using unsafe strcpy method
authorddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 24 Feb 2014 11:14:29 +0000 (11:14 +0000)
committerddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 24 Feb 2014 11:14:29 +0000 (11:14 +0000)
commit30a48bebd3e4c805aa44d4d01588d39e12cc8a09
treeab6eeeff1a5496c3872efac379b16bf0a4ac391f
parent44125301f646e832db895c4f400e766db64466ba
ANGLE: Stop using unsafe strcpy method
<http://webkit.org/b/129237>
<rdar://problem/11077580>

Reviewed by Dean Jackson.

* include/GLSLANG/ShaderLang.h:
- Drive-by fix for header documentation.

* src/compiler/translator/ShaderLang.cpp:
(ShGetInfoLog):
(ShGetObjectCode):
* src/libGLESv2/Program.cpp:
(gl::InfoLog::append):
- Switch to use strncpy(), and explicitly set NULL terminator at
  the end of the buffer.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@164580 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/ThirdParty/ANGLE/ChangeLog
Source/ThirdParty/ANGLE/include/GLSLANG/ShaderLang.h
Source/ThirdParty/ANGLE/src/compiler/translator/ShaderLang.cpp
Source/ThirdParty/ANGLE/src/libGLESv2/Program.cpp