[hackers] [st] fix segfault || pancake

From: <hg_AT_suckless.org>
Date: Mon, 30 Aug 2010 15:12:08 +0000 (UTC)

changeset: 114:2b5b15a61842
tag: tip
user: pancake_AT_nopcode.org
date: Mon Aug 30 17:07:54 2010 +0200
files: st.c
description:
fix segfault

diff -r d7ddead9b850 -r 2b5b15a61842 st.c
--- a/st.c Mon Aug 30 16:48:18 2010 +0200
+++ b/st.c Mon Aug 30 17:07:54 2010 +0200
@@ -1003,7 +1003,7 @@
 
         /* 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++) {
Received on Mon Aug 30 2010 - 17:12:08 CEST

This archive was generated by hypermail 2.2.0 : Mon Aug 30 2010 - 17:24:03 CEST