X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fechochar.c;fp=test%2Fechochar.c;h=a8203821075b8c0b8d53c29b9296355f04acbd1e;hp=e3011388cb68b32d19244e26b74fe701a9c8eb95;hb=772f879d17117c5b766022f28099e341ebea825b;hpb=6bbba9cd97d487dc567d06eb8f9131825abe3962 diff --git a/test/echochar.c b/test/echochar.c index e3011388..a8203821 100644 --- a/test/echochar.c +++ b/test/echochar.c @@ -26,7 +26,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: echochar.c,v 1.4 2007/06/30 17:54:56 tom Exp $ + * $Id: echochar.c,v 1.5 2007/07/21 17:41:55 tom Exp $ * * Demonstrate the echochar function (compare to dots.c). * Thomas Dickey - 2006/11/4 @@ -89,7 +89,7 @@ main( int last_fg = 0; int last_bg = 0; - while ((ch = getopt(argc, argv, "r")) != EOF) { + while ((ch = getopt(argc, argv, "r")) != -1) { switch (ch) { case 'r': opt_r = TRUE;