From 5e6c2f8da255535abc4660a3d2d0acdce741d0ab Mon Sep 17 00:00:00 2001 From: Dave Beazley Date: Fri, 15 Aug 2003 18:25:51 +0000 Subject: [PATCH] Fixed [ 761844 ] bug in typemap in Python Swig docs git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5002 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Doc/Manual/Python.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/Manual/Python.html b/Doc/Manual/Python.html index 9ada9bdd1..3e5e2c6b2 100644 --- a/Doc/Manual/Python.html +++ b/Doc/Manual/Python.html @@ -3325,7 +3325,7 @@ previous example: if (PyList_Check($input)) { int i; $1 = PyList_Size($input); - $2 = (char **) malloc((size+1)*sizeof(char *)); + $2 = (char **) malloc(($1+1)*sizeof(char *)); for (i = 0; i < $1; i++) { PyObject *o = PyList_GetItem($input,i); if (PyString_Check(o))