From 69c6d59bb6efc1ae1bcf58d19d049d435dc974b2 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 22 Jan 2008 18:52:21 -0600 Subject: Fix flip-flopped parameters to CALLOC macro The mixup causes a fail in the build using --enable-debug on x86_64 but not i686, so none of us caught this right away. Fix it. FS#9297. Signed-off-by: Dan McGee --- lib/libalpm/deps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/libalpm/deps.c b/lib/libalpm/deps.c index 163b22ba..5c63e9d6 100644 --- a/lib/libalpm/deps.c +++ b/lib/libalpm/deps.c @@ -400,7 +400,7 @@ pmdepend_t *_alpm_splitdep(const char *depstring) } STRDUP(newstr, depstring, RET_ERR(PM_ERR_MEMORY, NULL)); - CALLOC(depend, sizeof(pmdepend_t), 1, RET_ERR(PM_ERR_MEMORY, NULL)); + CALLOC(depend, 1, sizeof(pmdepend_t), RET_ERR(PM_ERR_MEMORY, NULL)); /* Find a version comparator if one exists. If it does, set the type and * increment the ptr accordingly so we can copy the right strings. */ @@ -445,7 +445,7 @@ pmdepend_t *_alpm_splitdep(const char *depstring) pmdepend_t *_alpm_dep_dup(const pmdepend_t *dep) { pmdepend_t *newdep; - CALLOC(newdep, sizeof(pmdepend_t), 1, RET_ERR(PM_ERR_MEMORY, NULL)); + CALLOC(newdep, 1, sizeof(pmdepend_t), RET_ERR(PM_ERR_MEMORY, NULL)); STRDUP(newdep->name, dep->name, RET_ERR(PM_ERR_MEMORY, NULL)); STRDUP(newdep->version, dep->version, RET_ERR(PM_ERR_MEMORY, NULL)); -- cgit v1.2.3-24-g4f1b