Article View: net.notes
Article #127Bug in access.c - (nf)
From: utzoodecvaxharpofloydcmcl2salkin...
Date: Wed, 12 Jan 1983 00:12
Date: Wed, 12 Jan 1983 00:12
16 lines
742 bytes
742 bytes
#N:cmcl2:12700003:000:357
cmcl2!salkind Jan 11 04:00:00 1983
Notes core dumps when you try to modify an invalid entry. This occurs
on the director's page.
The fix is simple; there is a missing break statement. Add it right
around line 230:
if (which > items || c < '0' || c > '9')/* check its validity */
{
at (-2, 1);
printf ("Bad entry");
break;
}
which--; /* adjust to zero base */
Technical Details
Message-ID:
<bnews.cmcl2.27365>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
From: utzoo!decvax!harpo!floyd!cmcl2!salkind Newsgroups: net.notes Title: Bug in access.c - (nf) Article-I.D.: cmcl2.27365 Posted: Wed Jan 12 00:12:00 1983 Received: Thu Jan 13 05:36:26 1983 Subject: Bug in access.c - (nf) Date: Wed, 12 Jan 1983 00:12:00 +0000 Message-ID: <bnews.cmcl2.27365>