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

2020-04-21 Thread git
commit 375c4e56368d6c833249896aa41735ecb97e4d2f Author: Jochen Sprickerhof AuthorDate: Tue Apr 21 19:48:13 2020 +0200 Commit: Jochen Sprickerhof CommitDate: Tue Apr 21 19:48:13 2020 +0200 Dereference pointers Thanks Quentin Rameau diff --git a/scroll.c b/scroll.c index

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

2020-04-21 Thread Quentin Rameau
Hi Jochen, > Dereference pointers > - if (x <= 0 || y <= 0) > + if (*x <= 0 || *y <= 0) > die("invalid cursor position: x=%d y=%d", x, y); /--^--^ Here too :)

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

2020-04-21 Thread git
commit 434ce8c136a6e22ec20cbbd5ac113089039370c6 Author: Jochen Sprickerhof AuthorDate: Tue Apr 21 08:23:59 2020 +0200 Commit: Jochen Sprickerhof CommitDate: Tue Apr 21 08:23:59 2020 +0200 Dereference pointers Thanks Steve Ward. diff --git a/scroll.c b/scroll.c index