Permalink
Browse files

Fix out of bounds in stack

  • Loading branch information...
1 parent b54fb6b commit 9970b3da05a65a79edf2cbd3c90983e17ba2bebe @vmg committed Sep 8, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/stack.c
View
@@ -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

0 comments on commit 9970b3d

Please sign in to comment.