[Win] Always NULL-terminate the string in createUTF8String()
authorddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 27 Jun 2014 01:10:48 +0000 (01:10 +0000)
committerddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 27 Jun 2014 01:10:48 +0000 (01:10 +0000)
commite376984d247257077af8c27b51361a11e1fd103a
treefc85b12399afe1e692e8818f1f80a14b51bc9958
parentfd91b00af3efbfccd583f2f7212225c18a56ba34
[Win] Always NULL-terminate the string in createUTF8String()
<http://webkit.org/b/134353>
<rdar://problem/17471783>

Reviewed by Brent Fulgham.

* plugins/PluginView.cpp:
(WebCore::createUTF8String): Pull out CString length into local
variable.  Switch to use memcpy.  Always NULL-terminate the
string.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@170513 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/plugins/PluginView.cpp