Warning fixes in generated Java code for 64bit Visual C++ on Windows.

This commit is contained in:
William S Fulton 2015-07-03 19:34:16 +01:00
commit c7da8bb06e
3 changed files with 5 additions and 5 deletions

View file

@ -369,7 +369,7 @@ namespace Swig {
static char *copystr(const char *srcmsg) {
char *target = 0;
if (srcmsg) {
int msglen = strlen(srcmsg) + 1;
size_t msglen = strlen(srcmsg) + 1;
target = new char[msglen];
strncpy(target, srcmsg, msglen);
}