aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurélien Aptel <aurelien.aptel@gmail.com>2011-06-08 20:26:00 +0200
committerAurélien Aptel <aurelien.aptel@gmail.com>2011-06-08 20:26:00 +0200
commitfb32d01a183979b3235740aaea555bfe94759dab (patch)
tree554ed0f90b4e21f86383b0c6e66827c2b32f69af
parent986670d08082c97a9fb847b9218ce504c840f0ad (diff)
downloadst-patched-fb32d01a183979b3235740aaea555bfe94759dab.tar.bz2
st-patched-fb32d01a183979b3235740aaea555bfe94759dab.tar.xz
st-patched-fb32d01a183979b3235740aaea555bfe94759dab.zip
applied parts of "anonymous" cleanup patch.
-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 }