Explorar o código

Dereference pointers

Thanks Quentin Rameau
Jochen Sprickerhof %!s(int64=5) %!d(string=hai) anos
pai
achega
375c4e5636
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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