Fixed compiling some pointlists

This commit is contained in:
Michiel Broek 2004-08-15 10:19:26 +00:00
parent ec76c05fa2
commit e50361205f
2 changed files with 7 additions and 7 deletions

View File

@ -23,6 +23,10 @@ v0.61.4 11-Aug-2004
Removed some debug logging from un_attach, made one into a
normal logmessage.
mbindex:
Fixed compiling pointlists where on the Boss line there is no
last comma on the line.
mbmsg:
Fixed counter in log that should show the number of linked
messages.

View File

@ -455,15 +455,11 @@ int compile(char *nlname, unsigned short zo, unsigned short ne, unsigned short n
/*
* Extra check for valid datalines, there should be at least one comma.
*/
WriteError("%s(%u): invalid dataline", nlname,lineno);
WriteError("%s(%u): invalid dataline 1", nlname,lineno);
continue;
}
if ((q = strchr(p, ',')))
*q++ = '\0';
else {
WriteError("%s(%u): invalid dataline", nlname,lineno);
continue;
}
ndx.type = NL_NONE;
ndx.pflag = 0;
@ -602,7 +598,7 @@ int compile(char *nlname, unsigned short zo, unsigned short ne, unsigned short n
for (i = 0; i < 3; i++) {
p = q;
if (p == NULL) {
WriteError("%s(%u): invalid dataline", nlname,lineno);
WriteError("%s(%u): invalid dataline 3", nlname,lineno);
continue;
}
if ((q = strchr(p, ',')))
@ -624,7 +620,7 @@ int compile(char *nlname, unsigned short zo, unsigned short ne, unsigned short n
for (i = 0; i < 2; i++) {
p = q;
if (p == NULL) {
WriteError("%s(%u): invalid dataline", nlname,lineno);
WriteError("%s(%u): invalid dataline 4", nlname,lineno);
continue;
}
if ((q = strchr(p, ',')))