Fix major error in lxt2 info allocation.

The zero element was already returned so it can not be reused a
second time. This was crashing when things went off the end of
the list since the do all functor was off by one.
This commit is contained in:
Cary R 2010-01-10 15:01:51 -08:00 committed by Stephen Williams
parent 76cc024f67
commit 85e0f8a328
1 changed files with 1 additions and 1 deletions

View File

@ -76,8 +76,8 @@ struct vcd_info*new_vcd_info(void)
return info_chunk_list->data + 0;
}
struct vcd_info*ptr = cur_chunk->data + cur_chunk->chunk_fill;
cur_chunk->chunk_fill += 1;
struct vcd_info*ptr = cur_chunk->data + cur_chunk->chunk_fill;
return ptr;
}