Article View: net.notes
Article #51newsinput bug and fix - (nf)
From: utzoodecvaxharpofloydvax135alb
Date: Sun, 08 Aug 1982 10:50
Date: Sun, 08 Aug 1982 10:50
19 lines
1155 bytes
1155 bytes
#N:vax135:10600001:000:762
vax135!alb Aug 8 10:40:00 1982
newsinput breaks when an address has a system delimiter (e.g.
! . : etc.) in a real name section. It records the author's
name as the point from just after the last occurrence of one
of the buggers to the next space after it or the end of the line.
This is because newsinput steps backwards from the end of the
address line until it finds one of these (intending to find
the login name) and thinks it hit one when in fact it could
be a period after an initial. The fix is to have newsinput
step backwards not from the end of the address line but rather
from the end of the address (right before the real name, if any)
To do this, go into newsinput.c and change the line reading:
j = i;
to read:
for (j = 0; j < i; j++)
if (line[j] == ' ')
break;
Technical Details
Message-ID:
<bnews.vax135.400>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
From: utzoo!decvax!harpo!floyd!vax135!alb Newsgroups: net.notes Title: newsinput bug and fix - (nf) Article-I.D.: vax135.400 Posted: Sun Aug 8 10:50:29 1982 Received: Mon Aug 9 02:13:29 1982 Subject: newsinput bug and fix - (nf) Date: Sun, 08 Aug 1982 10:50:29 +0000 Message-ID: <bnews.vax135.400>