summarylogtreecommitdiffstats
path: root/ttyscrn.patch
blob: a6d0f1a5a1ce6d48e77101d74f9d58a7aa5dfc45 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- src/libc/posix/termios/ttyscrn.c
+++ src/libc/posix/termios/ttyscrn.c
@@ -464,7 +464,7 @@
     __dpmi_int(0x10, &r);
     if (++(*col) > __tty_screen.max_col)
     {
-      col = 0;
+      *col = 0;
       ++row;
     }
     __tty_screen.set_cursor(*col, *row);