Skip to content

Commit

Permalink
Fix major error in lxt2 info allocation.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
caryr authored and steveicarus committed Jan 11, 2010
1 parent 76cc024 commit 85e0f8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vpi/sys_lxt2.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 85e0f8a

Please sign in to comment.