summaryrefslogtreecommitdiff
path: root/lib/rpmps.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2011-03-17 14:08:54 +0200
committerPanu Matilainen <pmatilai@redhat.com>2011-03-17 14:08:54 +0200
commit8ec147d3228df07b032df0a7081fdeb899394f13 (patch)
treecbd185acc104edb0dac45af3433c775b984f2c8e /lib/rpmps.c
parent5caa0a5191923602e4f4942a01daf6832ee0bb46 (diff)
downloadrpm-8ec147d3228df07b032df0a7081fdeb899394f13.tar.gz
rpm-8ec147d3228df07b032df0a7081fdeb899394f13.tar.bz2
rpm-8ec147d3228df07b032df0a7081fdeb899394f13.zip
Fix couple of incorrect sizeof() uses
Diffstat (limited to 'lib/rpmps.c')
-rw-r--r--lib/rpmps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rpmps.c b/lib/rpmps.c
index 6e1ab182c..50b7d29c4 100644
--- a/lib/rpmps.c
+++ b/lib/rpmps.c
@@ -132,7 +132,7 @@ void rpmpsAppendProblem(rpmps ps, rpmProblem prob)
else
ps->numProblemsAlloced = 2;
ps->probs = xrealloc(ps->probs,
- ps->numProblemsAlloced * sizeof(ps->probs));
+ ps->numProblemsAlloced * sizeof(*ps->probs));
}
ps->probs[ps->numProblems] = rpmProblemLink(prob);