X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/catacomb-python/blobdiff_plain/0040152918b6695e73807fd479024db8a27a83fb..ab5212e53b51e516f086e20b66c121d966967a9a:/group.c diff --git a/group.c b/group.c index 544a8c7..1f733a0 100644 --- a/group.c +++ b/group.c @@ -225,7 +225,7 @@ static PyObject *namedgroups(const pentry *pp, int *ne) } c = PyInt_FromLong(i); found: - PyDict_SetItemString(d, (/*unconst*/ char *)pp[i].name, c); + PyDict_SetItemString(d, (/*unconst*/ char *)p, c); Py_DECREF(c); } *ne = i;