diff options
Diffstat (limited to 'stdio-common/bug4.c')
-rw-r--r-- | stdio-common/bug4.c | 2 |
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': |