mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Fix build with Clang 6.0.
This commit is contained in:
parent
b6266066a9
commit
c16eb018ab
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=459803
1 changed files with 11 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
Loading…
Add table
Reference in a new issue