diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2011-03-17 14:08:54 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2011-03-17 14:08:54 +0200 |
commit | 8ec147d3228df07b032df0a7081fdeb899394f13 (patch) | |
tree | cbd185acc104edb0dac45af3433c775b984f2c8e /lib | |
parent | 5caa0a5191923602e4f4942a01daf6832ee0bb46 (diff) | |
download | rpm-8ec147d3228df07b032df0a7081fdeb899394f13.tar.gz rpm-8ec147d3228df07b032df0a7081fdeb899394f13.tar.bz2 rpm-8ec147d3228df07b032df0a7081fdeb899394f13.zip |
Fix couple of incorrect sizeof() uses
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rpmfi.c | 2 | ||||
-rw-r--r-- | lib/rpmps.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/rpmfi.c b/lib/rpmfi.c index f8be4c9b9..5a34d75ca 100644 --- a/lib/rpmfi.c +++ b/lib/rpmfi.c @@ -52,7 +52,7 @@ static scidx_t strcachePut(strcache cache, const char *str) /* blow up on index wraparound */ assert((scidx_t)(cache->num + 1) > cache->num); cache->uniq = xrealloc(cache->uniq, - sizeof(cache->uniq) * (cache->num+1)); + sizeof(*cache->uniq) * (cache->num+1)); cache->uniq[cache->num] = xstrdup(str); ret = cache->num; cache->num++; 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); |