X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/catacomb-python/blobdiff_plain/00a8b95ada5b1bf6d4dae66249c075a691c630b2..d1c45f5c79fda35ff9f8fd7d90f345dba3de4eb8:/group.c?ds=inline diff --git a/group.c b/group.c index 001eb19..1f733a0 100644 --- a/group.c +++ b/group.c @@ -1,6 +1,4 @@ /* -*-c-*- - * - * $Id$ * * Abstract group inteface * @@ -227,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;