Fixed TIC From check bug
This commit is contained in:
parent
d0f3ce213d
commit
0140e43955
@ -46,7 +46,7 @@ void mover(char *fn)
|
|||||||
To = calloc(PATH_MAX, sizeof(char));
|
To = calloc(PATH_MAX, sizeof(char));
|
||||||
|
|
||||||
sprintf(From, "%s/%s", TIC.Inbound, fn);
|
sprintf(From, "%s/%s", TIC.Inbound, fn);
|
||||||
sprintf(To, "%s/%s", TIC.Inbound, fn);
|
sprintf(To, "%s/%s", CFG.badtic, fn);
|
||||||
Syslog('!', "Moving %s to %s", From, To);
|
Syslog('!', "Moving %s to %s", From, To);
|
||||||
|
|
||||||
if (mkdirs(To)) {
|
if (mkdirs(To)) {
|
||||||
|
@ -359,7 +359,7 @@ int LoadTic(char *inb, char *tfn)
|
|||||||
Log = NULL;
|
Log = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
strcpy(Temp, TIC.TicIn.Origin);
|
strcpy(Temp, TIC.TicIn.From);
|
||||||
TIC.Aka.zone = atoi(strtok(Temp, ":"));
|
TIC.Aka.zone = atoi(strtok(Temp, ":"));
|
||||||
TIC.Aka.net = atoi(strtok(NULL, "/"));
|
TIC.Aka.net = atoi(strtok(NULL, "/"));
|
||||||
TIC.Aka.node = atoi(strtok(NULL, "@\0"));
|
TIC.Aka.node = atoi(strtok(NULL, "@\0"));
|
||||||
|
Reference in New Issue
Block a user