Forráskód Böngészése

Dereference pointers

Thanks Quentin Rameau
Jochen Sprickerhof 5 éve
szülő
commit
375c4e5636
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      scroll.c

+ 1 - 1
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