X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Finserts.c;h=458788a5ff9fc0fe97ca480e64619522490b0346;hp=25c2d56b8f0e3bece0fe3102f31318f821a70ef7;hb=c4d90db4f4e50bb8a971955ce4812262da4a50bc;hpb=0be808514502f3149b379d036ab3a83cbb4d4c02 diff --git a/test/inserts.c b/test/inserts.c index 25c2d56b..458788a5 100644 --- a/test/inserts.c +++ b/test/inserts.c @@ -26,7 +26,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: inserts.c,v 1.17 2007/03/11 00:19:00 tom Exp $ + * $Id: inserts.c,v 1.18 2007/07/21 17:41:55 tom Exp $ * * Demonstrate the winsstr() and winsch functions. * Thomas Dickey - 2002/10/19 @@ -405,7 +405,7 @@ main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED) setlocale(LC_ALL, ""); - while ((ch = getopt(argc, argv, "mn:w")) != EOF) { + while ((ch = getopt(argc, argv, "mn:w")) != -1) { switch (ch) { case 'm': m_opt = TRUE;