Several fixes and patches from users

This commit is contained in:
Michiel Broek
2002-06-24 21:55:03 +00:00
parent d864d6a2a9
commit 208fa17e1b
6 changed files with 25 additions and 2 deletions

View File

@@ -162,6 +162,8 @@ int CheckTicGroup(char *Area, int SendUplink, faddr *f)
if (strlen(buf) && isalnum(buf[0])) {
tag = strtok(buf, "\t \r\n\0");
p = strtok(NULL, "\r\n\0");
if (p == NULL)
p = tag; /* If no description after the TAG, use TAG as description */
desc = p;
while ((*desc == ' ') || (*desc == '\t'))
desc++;

View File

@@ -110,6 +110,8 @@ int CheckEchoGroup(char *Area, int SendUplink, faddr *f)
if (strlen(buf) && isalnum(buf[0])) {
tag = strtok(buf, "\t \r\n\0");
p = strtok(NULL, "\r\n\0");
if (p == NULL)
p = tag; /* If no description after the TAG, use TAG as description */
desc = p;
while ((*desc == ' ') || (*desc == '\t'))
desc++;

View File

@@ -426,6 +426,7 @@ int compile(char *nlname, unsigned short zo, unsigned short ne, unsigned short n
while (!feof(nl)) {
Nopper();
ndx.offset = ftell(nl);
lineno++;
if (fgets(buf, sizeof(buf)-1, nl) == NULL)
@@ -611,6 +612,8 @@ int compile(char *nlname, unsigned short zo, unsigned short ne, unsigned short n
continue;
if ((q = strchr(p, ',')))
*q++ = '\0';
if (q == NULL)
q = p;
}
if (strlen(p) > 35)
p[35] = '\0';
@@ -626,6 +629,8 @@ int compile(char *nlname, unsigned short zo, unsigned short ne, unsigned short n
continue;
if ((q = strchr(p, ',')))
*q++ = '\0';
if (q == NULL)
q = p;
}
if ((strlen(p) == 3) && (!strcmp(p, "300")) && (q != NULL)) {
if ((strstr(q, (char *)"X75")) ||