Fix build with Clang 6.0.

This commit is contained in:
Jung-uk Kim 2018-01-23 22:59:21 +00:00
parent b6266066a9
commit c16eb018ab
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=459803

View File

@ -0,0 +1,11 @@
--- plugin/icedteanp/IcedTeaPluginUtils.cc.orig 2016-02-03 13:47:43 UTC
+++ plugin/icedteanp/IcedTeaPluginUtils.cc
@@ -1017,7 +1017,7 @@ NPString IcedTeaPluginUtilities::NPStringCopy(const st
char* utf8 = (char*)browser_functions.memalloc(result.size() + 1);
strncpy(utf8, result.c_str(), result.size() + 1);
- NPString npstr = {utf8, result.size()};
+ NPString npstr = {utf8, (uint32_t)result.size()};
return npstr;
}