summaryrefslogtreecommitdiffstats
path: root/lib/libncurses/TESTS/hanoi.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libncurses/TESTS/hanoi.c')
-rw-r--r--lib/libncurses/TESTS/hanoi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libncurses/TESTS/hanoi.c b/lib/libncurses/TESTS/hanoi.c
index 422d5da..e7da51d 100644
--- a/lib/libncurses/TESTS/hanoi.c
+++ b/lib/libncurses/TESTS/hanoi.c
@@ -28,7 +28,7 @@
#define MIDPEG 39
#define RIGHTPEG 59
-#define LENTOIND(x) (((x)-1)/2-1)
+#define LENTOIND(x) (((x)-1)/2)
#define OTHER(a,b) (3-((a)+(b)))
struct Peg {
@@ -91,7 +91,6 @@ unsigned char AutoFlag = 0;
puts("terminal doesn't support color.");
exit(1);
}
- traceon();
start_color();
{
int i;
OpenPOWER on IntegriCloud