about summary refs log tree commit diff
path: root/stdio-common/bug4.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common/bug4.c')
-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 acf5b5433b..492a41d923 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':