Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!elsie!ado From: ado@elsie.UUCP (Arthur David Olson) Newsgroups: net.news.b,net.news.adm,net.bugs Subject: Re: postnews() bug (2.10.3), with fix Message-ID: <6195@elsie.UUCP> Date: Fri, 22-Aug-86 11:37:04 EDT Article-I.D.: elsie.6195 Posted: Fri Aug 22 11:37:04 1986 Date-Received: Fri, 22-Aug-86 21:52:12 EDT References: <483@mcgill-vision.UUCP> Organization: NIH-LEC, Bethesda, MD Lines: 13 Keywords: moderated groups, bugs Summary: defensive programming Xref: mnetor net.news.b:368 net.news.adm:652 net.bugs:332 > for (p=src; !isspace(*p)/*isalnum(*p) || ispunct(*p)*/; p++) > ; Since isspace('\0') is false (at least on our 4.1BSD system), our department of defensive programming recommends that the above test take the form > for (p=src; *p != '\0' && !isspace(*p); p++) > ; -- Bug/s is a Volkswagen/Warner Brothers trademark. -- UUCP: ..decvax!seismo!elsie!ado ARPA: elsie!ado@seismo.ARPA DEC, VAX, Elsie & Ado are Digital, Borden & Ampex trademarks.