aboutsummarylogtreecommitdiffstats
path: root/st.c
diff options
context:
space:
mode:
authorpancake@nopcode.org2010-08-30 17:07:54 +0200
committerpancake@nopcode.org2010-08-30 17:07:54 +0200
commit06d1098c99b41a333409fd1143a5767a6c60dfbd (patch)
treeb4f07fb012501ad28e14f6c9c4e26df76bae62f0 /st.c
parentb14b3d315bfe5f9f652aca6a5cc970d995407e16 (diff)
downloadaur-06d1098c99b41a333409fd1143a5767a6c60dfbd.tar.gz
fix segfault
Diffstat (limited to 'st.c')
-rw-r--r--st.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/st.c b/st.c
index d928f0d6c58d..fb1172a2bf62 100644
--- 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++) {