From 19e7c3b6acd5ca2ab6b40413bab5f6779ab2e8d9 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sat, 17 Nov 2012 16:47:09 -0500 Subject: [PATCH] Fix type. --- mwparserfromhell/parser/tokenizer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mwparserfromhell/parser/tokenizer.c b/mwparserfromhell/parser/tokenizer.c index 0935770..18972aa 100644 --- a/mwparserfromhell/parser/tokenizer.c +++ b/mwparserfromhell/parser/tokenizer.c @@ -1452,7 +1452,7 @@ init_tokenizer(void) Py_DECREF(htmlentitydefs); unsigned numdefs = (unsigned) PyDict_Size(defmap); - entitydefs = malloc(numdefs * sizeof(char)); + entitydefs = malloc(numdefs * sizeof(char*)); PyObject* deflist = PyDict_Keys(defmap); if (!deflist) return; Py_DECREF(defmap);