fix null char* case, reported by Daniel Moore
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9077 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
3873d7f331
commit
f61ae5e91c
1 changed files with 1 additions and 1 deletions
|
|
@ -506,7 +506,7 @@
|
||||||
SWIGINTERNINLINE SWIG_Object
|
SWIGINTERNINLINE SWIG_Object
|
||||||
SWIG_From##CharName##Ptr(const Char *cptr)
|
SWIG_From##CharName##Ptr(const Char *cptr)
|
||||||
{
|
{
|
||||||
return SWIG_FromCharPtrAndSize(cptr, (cptr ? SWIG_CharPtrLen(cptr) : 0));
|
return SWIG_FromCharPtrAndSize(cptr, (cptr ? SWIG_CharPtrLen(cptr) + 1: 0));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue