commit 375c4e56368d6c833249896aa41735ecb97e4d2f
Author:     Jochen Sprickerhof <[email protected]>
AuthorDate: Tue Apr 21 19:48:13 2020 +0200
Commit:     Jochen Sprickerhof <[email protected]>
CommitDate: Tue Apr 21 19:48:13 2020 +0200

    Dereference pointers
    
    Thanks Quentin Rameau

diff --git a/scroll.c b/scroll.c
index 4ff4598..5b09893 100644
--- a/scroll.c
+++ b/scroll.c
@@ -233,7 +233,7 @@ getcursorposition(int *x, int *y)
        } while (sscanf(input, "\033[%d;%dR", x, y) != 2);
 
        if (*x <= 0 || *y <= 0)
-               die("invalid cursor position: x=%d y=%d", x, y);
+               die("invalid cursor position: x=%d y=%d", *x, *y);
 }
 
 void

Reply via email to