build.c: adjust for macroTableSize change

This commit is contained in:
Alexey Tourbin 2011-01-06 05:00:53 +03:00
parent 6370ecd629
commit d6e06cbbd5

View File

@ -286,7 +286,7 @@ static int buildForTarget(const char * arg, BTA_t ba,
if (ba->buildAmount & RPMBUILD_MACROREQS) { if (ba->buildAmount & RPMBUILD_MACROREQS) {
int i; int i;
for (i = 0; i < spec->macros->firstFree; ++i) { for (i = 0; i < spec->macros->macroTableSize; ++i) {
MacroEntry me = spec->macros->macroTable[i]; MacroEntry me = spec->macros->macroTable[i];
if (me && me->used > 0) if (me && me->used > 0)