Fix out of bounds in stack

This commit is contained in:
Vicent Marti 2011-09-08 06:41:57 +02:00
parent b54fb6bfa3
commit 9970b3da05

View file

@ -57,7 +57,7 @@ stack_pop(struct stack *st)
if (!st->size)
return NULL;
return st->item[st->size--];
return st->item[--st->size];
}
int