[hackers] [scroll] Dereference pointers || Jochen Sprickerhof

From: <git_AT_suckless.org>
Date: Tue, 21 Apr 2020 20:55:36 +0200 (CEST)

commit 375c4e56368d6c833249896aa41735ecb97e4d2f
Author: Jochen Sprickerhof <git_AT_jochen.sprickerhof.de>
AuthorDate: Tue Apr 21 19:48:13 2020 +0200
Commit: Jochen Sprickerhof <git_AT_jochen.sprickerhof.de>
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
_AT_@ -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
Received on Tue Apr 21 2020 - 20:55:36 CEST

This archive was generated by hypermail 2.3.0 : Tue Apr 21 2020 - 21:00:40 CEST