diff options
author | Matt Wilson <msw@redhat.com> | 1999-08-19 00:03:53 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 1999-08-19 00:03:53 +0000 |
commit | 91b8a5715d27e4d3de45b6ca8e4661c404b70af5 (patch) | |
tree | 0f975f2843904c9812fca2300f2a8cad3edca844 /rpmmodule/rpmmodule.c | |
parent | 1000c6340c4770ac7717de5856b9cec7c2db9047 (diff) | |
download | anaconda-91b8a5715d27e4d3de45b6ca8e4661c404b70af5.tar.gz anaconda-91b8a5715d27e4d3de45b6ca8e4661c404b70af5.tar.xz anaconda-91b8a5715d27e4d3de45b6ca8e4661c404b70af5.zip |
fixed alloca too much memory
Diffstat (limited to 'rpmmodule/rpmmodule.c')
-rw-r--r-- | rpmmodule/rpmmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmmodule/rpmmodule.c b/rpmmodule/rpmmodule.c index f5658f9ef..3cdded31e 100644 --- a/rpmmodule/rpmmodule.c +++ b/rpmmodule/rpmmodule.c @@ -351,7 +351,7 @@ static PyObject * findUpgradeSet(PyObject * self, PyObject * args) { } list.numPackages = PyList_Size(hdrList); - list.packages = alloca(sizeof(*list.packages) * list.numPackages); + list.packages = alloca(sizeof(list.packages) * list.numPackages); for (i = 0; i < list.numPackages; i++) { hdr = (hdrObject *) PyList_GetItem(hdrList, i); if (hdr->ob_type != &hdrType) { |