aboutsummaryrefslogtreecommitdiff
path: root/stdio-common
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common')
-rw-r--r--stdio-common/bug4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdio-common/bug4.c b/stdio-common/bug4.c
index acf5b54..492a41d 100644
--- a/stdio-common/bug4.c
+++ b/stdio-common/bug4.c
@@ -16,7 +16,7 @@ DEFUN(main, (argc, argv),
char buffer[31];
const char filename[] = "/tmp/bugtest";
- while ((i = getopt (argc, argv, "rw")) != EOF)
+ while ((i = getopt (argc, argv, "rw")) != -1)
switch (i)
{
case 'r':