aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--st.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/st.c b/st.c
index bc17df3..6ba5c4c 100644
--- a/st.c
+++ b/st.c
@@ -483,8 +483,7 @@ selcopy(void) {
483 483
484void 484void
485selnotify(XEvent *e) { 485selnotify(XEvent *e) {
486 unsigned long nitems; 486 unsigned long nitems, ofs, rem;
487 unsigned long ofs, rem;
488 int format; 487 int format;
489 unsigned char *data; 488 unsigned char *data;
490 Atom type; 489 Atom type;
@@ -767,7 +766,7 @@ tnew(int col, int row) {
767 term.row = row, term.col = col; 766 term.row = row, term.col = col;
768 term.line = malloc(term.row * sizeof(Line)); 767 term.line = malloc(term.row * sizeof(Line));
769 term.alt = malloc(term.row * sizeof(Line)); 768 term.alt = malloc(term.row * sizeof(Line));
770 for(row = 0 ; row < term.row; row++) { 769 for(row = 0; row < term.row; row++) {
771 term.line[row] = malloc(term.col * sizeof(Glyph)); 770 term.line[row] = malloc(term.col * sizeof(Glyph));
772 term.alt [row] = malloc(term.col * sizeof(Glyph)); 771 term.alt [row] = malloc(term.col * sizeof(Glyph));
773 } 772 }