summaryrefslogtreecommitdiff
path: root/games/grdc/grdc.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/grdc/grdc.c')
-rw-r--r--games/grdc/grdc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/games/grdc/grdc.c b/games/grdc/grdc.c
index ea2d3408b92..64a3b1b2196 100644
--- a/games/grdc/grdc.c
+++ b/games/grdc/grdc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: grdc.c,v 1.30 2019/01/06 18:27:14 tedu Exp $ */
+/* $OpenBSD: grdc.c,v 1.31 2019/06/28 13:32:52 deraadt Exp $ */
/*
*
* Copyright 2002 Amos Shapir. Public domain.
@@ -293,7 +293,7 @@ getwinsize(int *wid, int *ht)
{
struct winsize size;
- if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &size) < 0) {
+ if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &size) == -1) {
*wid = 80; /* Default */
*ht = 24;
} else {