]> granicus.if.org Git - sudo/commitdiff
fix off by one error in push macro
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 18 Feb 1998 21:23:57 +0000 (21:23 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 18 Feb 1998 21:23:57 +0000 (21:23 +0000)
parse.yacc

index ff2d0fa0bd163d19285ce1d25c4fcb09f641b9e7..53507d78f0fa1d2c7726efb0369ab502b79eb796 100644 (file)
@@ -90,7 +90,7 @@ int top = 0, stacksize = 0;
 
 #define push \
     { \
-       if (top > stacksize) { \
+       if (top >= stacksize) { \
            while ((stacksize += STACKINCREMENT) < top); \
            match = (struct matchstack *) realloc(match, sizeof(struct matchstack) * stacksize); \
            if (match == NULL) { \