* Blocked non-numeric input to intprompt() (fixes bug #16)
$Log$
+Revision 1.473 2000/02/27 04:55:51 ajc
+* Added "keymenu()" generic menu-maker to commands.c
+* Blocked non-numeric input to intprompt() (fixes bug #16)
+
Revision 1.472 2000/02/27 03:57:35 ajc
* Completed 'fsck'-like reference count verifier (server and client)
Fri Jul 10 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
* Initial CVS import
+
{
char buf[16];
int i;
- i = ival;
+ int p;
+
do {
+ i = ival;
snprintf(buf, sizeof buf, "%d", i);
strprompt(prompt, buf, 15);
i = atoi(buf);
+ for (p=0; p<strlen(buf); ++p) {
+ if (!isdigit(buf[p])) i = imin - 1;
+ }
if (i < imin)
printf("*** Must be no less than %d.\n", imin);
if (i > imax)