diff options
author | Aurélien Aptel <aurelien.aptel@gmail.com> | 2011-06-08 20:26:00 +0200 |
---|---|---|
committer | Aurélien Aptel <aurelien.aptel@gmail.com> | 2011-06-08 20:26:00 +0200 |
commit | fb32d01a183979b3235740aaea555bfe94759dab (patch) | |
tree | 554ed0f90b4e21f86383b0c6e66827c2b32f69af | |
parent | 986670d08082c97a9fb847b9218ce504c840f0ad (diff) | |
download | st-patched-fb32d01a183979b3235740aaea555bfe94759dab.tar.bz2 st-patched-fb32d01a183979b3235740aaea555bfe94759dab.tar.xz st-patched-fb32d01a183979b3235740aaea555bfe94759dab.zip |
applied parts of "anonymous" cleanup patch.
-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 | } |