diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2016-11-11 18:52:16 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2016-11-11 18:55:09 +0200 |
commit | b92047ed10c4da784c296dfcf09da250b7b637c7 (patch) | |
tree | 9329fa2f35857af5cc546ae399e8b0e4c6c91d8f | |
parent | 1b89c5a728a99acffff75582f5a4126f5b4d2d4b (diff) | |
download | cflow-b92047ed10c4da784c296dfcf09da250b7b637c7.tar.gz cflow-b92047ed10c4da784c296dfcf09da250b7b637c7.tar.bz2 |
Bugfix
* src/parser.c (tokdel): Fix amount of memory to move.
* THANKS: Niklas Angebrand
-rw-r--r-- | THANKS | 1 | ||||
-rw-r--r-- | src/parser.c | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -11,2 +11,3 @@ Louis Bertrand <louis@bertrandtech.ca> Nelson H. F. Beebe <beebe@math.utah.edu> +Niklas Angebrand <niklas.angebrand.2@consultant.volvo.com> Robert E. Michael <rmichael2@nc.rr.com> diff --git a/src/parser.c b/src/parser.c index d2832a1..e5114dc 100644 --- a/src/parser.c +++ b/src/parser.c @@ -238,3 +238,3 @@ tokdel(int beg, int end) memmove(token_stack + beg, token_stack + end + 1, - (end - beg + 1) * sizeof(token_stack[0])); + (tos - end - 1) * sizeof(token_stack[0])); tos -= (end - beg + 1); |