[Pinfo-devel] r217 - pinfo/trunk/src
Bas Zoetekouw
bas at costa.debian.org
Thu Sep 8 21:01:51 UTC 2005
Author: bas
Date: 2005-09-08 21:01:50 +0000 (Thu, 08 Sep 2005)
New Revision: 217
Modified:
pinfo/trunk/src/initializelinks.c
Log:
Fixed scanning for node links of the form:
* Rules: Rpcalc Rules. Grammar Rules for rpcalc, with explanation.
(example taken from bison info page). These weren't detected because
finddot() looked for the last occurrence of a '.' (or ',' or '\t', or '\n'),
instead of the first one.
This fixes Debian bug #235134.
Modified: pinfo/trunk/src/initializelinks.c
===================================================================
--- pinfo/trunk/src/initializelinks.c 2005-09-08 20:34:56 UTC (rev 216)
+++ pinfo/trunk/src/initializelinks.c 2005-09-08 21:01:50 UTC (rev 217)
@@ -153,8 +153,8 @@
return 0;
ptr++;
}
- end[0] = strrchr(str, '.'); /* nodename entry may end with dot, comma */
- end[1] = strrchr(str, ','); /* tabulation, or newline */
+ end[0] = strchr(str, '.'); /* nodename entry may end with dot, comma */
+ end[1] = strchr(str, ','); /* tabulation, or newline */
if (!mynote)
{
end[2] = strchr(str, '\t');
@@ -211,7 +211,7 @@
return 0;
}
- void
+void
initializelinks(char *line1, char *line2, int line)
{
char *tmp;
More information about the Pinfo-devel
mailing list