pwsafe: Eliminate the `dump' subcommand.
[catacomb-python] / group.c
diff --git a/group.c b/group.c
index 544a8c7..1f733a0 100644 (file)
--- 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;