diff options
Diffstat (limited to 'st.c')
-rw-r--r-- | st.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -483,8 +483,7 @@ selcopy(void) { | |||
483 | 483 | ||
484 | void | 484 | void |
485 | selnotify(XEvent *e) { | 485 | selnotify(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 | } |