add missing %s

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7964 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2005-12-10 00:40:42 +00:00
commit 3b3d3118f1

View file

@ -20,11 +20,11 @@ SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
The default behavior is just to return the pointer value, The default behavior is just to return the pointer value,
so, be careful. so, be careful.
*/ */
#if defined(SWIG_PYTHON_SAFE_CSTRINGS) %#if defined(SWIG_PYTHON_SAFE_CSTRINGS)
if (*alloc != SWIG_OLDOBJ) if (*alloc != SWIG_OLDOBJ)
#else %#else
if (*alloc == SWIG_NEWOBJ) if (*alloc == SWIG_NEWOBJ)
#endif %#endif
{ {
*cptr = %new_copy_array(cstr, len + 1, char); *cptr = %new_copy_array(cstr, len + 1, char);
*alloc = SWIG_NEWOBJ; *alloc = SWIG_NEWOBJ;