Fix invalid memory access bug in pager line wrapping
commitcb5eb1d549e32d0d7b014c96c7d999fab19783ac
authorJonas Fonseca <fonseca@diku.dk>
Wed, 5 Sep 2012 19:45:04 +0000 (5 15:45 -0400)
committerJonas Fonseca <fonseca@diku.dk>
Wed, 5 Sep 2012 19:45:04 +0000 (5 15:45 -0400)
treef7dc89475732f142cf8f3a3022e251c6ca788398
parent9e09e0242d968a656583fafc09fb481b6b9c5085
Fix invalid memory access bug in pager line wrapping

A reference to the first allocated line was cached as the return value.
If calls to add_line would force a reallocation of the view line array
the cached line reference would become invalid and lead to a segfault.
tig.c