Several fixes and patches from users
This commit is contained in:
@@ -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++;
|
||||
|
@@ -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++;
|
||||
|
@@ -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")) ||
|
||||
|
Reference in New Issue
Block a user