aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpancake@nopcode.org <unknown>2010-08-30 17:07:54 +0200
committerpancake@nopcode.org <unknown>2010-08-30 17:07:54 +0200
commite1ce89f2678628b1c0e904800822a553de2817de (patch)
tree64ef7e724b1fbf8bd7a1e4cbdd1a0a8a63e5c930
parent12c25bcea973ced6e3b3b03f05cdb3f45fcd9f7f (diff)
downloadst-e1ce89f2678628b1c0e904800822a553de2817de.tar.gz
st-e1ce89f2678628b1c0e904800822a553de2817de.zip
fix segfault
-rw-r--r--st.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/st.c b/st.c
index d928f0d..fb1172a 100644
--- a/st.c
+++ b/st.c
@@ -1003,7 +1003,7 @@ tresize(int col, int row) {
1003 1003
1004 /* resize to new height */ 1004 /* resize to new height */
1005 term.line = realloc(term.line, row * sizeof(Line)); 1005 term.line = realloc(term.line, row * sizeof(Line));
1006 term.line = realloc(term.alt, row * sizeof(Line)); 1006 term.alt = realloc(term.alt, row * sizeof(Line));
1007 1007
1008 /* resize each row to new width, zero-pad if needed */ 1008 /* resize each row to new width, zero-pad if needed */
1009 for(i = 0; i < minrow; i++) { 1009 for(i = 0; i < minrow; i++) {