fix segfault - st - simple terminal
HTML git clone https://git.parazyd.org/st
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit e1ce89f2678628b1c0e904800822a553de2817de
DIR parent 12c25bcea973ced6e3b3b03f05cdb3f45fcd9f7f
HTML Author: pancake@nopcode.org <unknown>
Date: Mon, 30 Aug 2010 17:07:54 +0200
fix segfault
Diffstat:
M st.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/st.c b/st.c
@@ -1003,7 +1003,7 @@ tresize(int col, int row) {
/* resize to new height */
term.line = realloc(term.line, row * sizeof(Line));
- term.line = realloc(term.alt, row * sizeof(Line));
+ term.alt = realloc(term.alt, row * sizeof(Line));
/* resize each row to new width, zero-pad if needed */
for(i = 0; i < minrow; i++) {