Fixed TIC From check bug

This commit is contained in:
Michiel Broek 2001-12-09 22:21:04 +00:00
parent d0f3ce213d
commit 0140e43955
2 changed files with 2 additions and 2 deletions

View File

@ -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)) {

View File

@ -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"));