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))