Introduction
Introduction Statistics Contact Development Disclaimer Help
Dereference pointers - scroll - scrollbackbuffer program for st
git clone git://git.suckless.org/scroll
Log
Files
Refs
README
LICENSE
---
commit 434ce8c136a6e22ec20cbbd5ac113089039370c6
parent ef64e7624c591d601da56c52948be37b1f54f18c
Author: Jochen Sprickerhof <[email protected]>
Date: Tue, 21 Apr 2020 08:23:59 +0200
Dereference pointers
Thanks Steve Ward.
Diffstat:
M scroll.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/scroll.c b/scroll.c
@@ -232,7 +232,7 @@ getcursorposition(int *x, int *y)
input[n] = '\0';
} while (sscanf(input, "\033[%d;%dR", x, y) != 2);
- if (x <= 0 || y <= 0)
+ if (*x <= 0 || *y <= 0)
die("invalid cursor position: x=%d y=%d", x, y);
}
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.