diff options
author | pancake@nopcode.org <unknown> | 2010-08-30 17:07:54 +0200 |
---|---|---|
committer | pancake@nopcode.org <unknown> | 2010-08-30 17:07:54 +0200 |
commit | 35b33ee4894c16a22a0b883ca3bf636246894955 (patch) | |
tree | 64ef7e724b1fbf8bd7a1e4cbdd1a0a8a63e5c930 | |
parent | 641dfd94e35c72134d8de0401f6f20bbc86de89e (diff) | |
download | st-35b33ee4894c16a22a0b883ca3bf636246894955.tar.gz st-35b33ee4894c16a22a0b883ca3bf636246894955.tar.bz2 |
fix segfault
-rw-r--r-- | st.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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++) { |