v1.0.7.12 - Fix bad/orphan .TIC support to support .TIC files with names longer
than 8 characters; fix empty partial files left in temporary inbound when a remote Binkp site attempts to send a 0 byte file.
This commit is contained in:
@@ -53,7 +53,7 @@ void fill_orphans(orphans **qal, char *TicName, char *Area, char *FileName, int
|
||||
|
||||
tmp = (orphans *)malloc(sizeof(orphans));
|
||||
tmp->next = *qal;
|
||||
snprintf(tmp->TicName, 13, TicName);
|
||||
snprintf(tmp->TicName, 51, TicName);
|
||||
snprintf(tmp->Area, 21, Area);
|
||||
snprintf(tmp->FileName, 81, FileName);
|
||||
tmp->Orphaned = Orphaned;
|
||||
|
@@ -8,7 +8,7 @@
|
||||
*/
|
||||
typedef struct _orphans {
|
||||
struct _orphans *next; /* Linked list */
|
||||
char TicName[13]; /* TIC filename */
|
||||
char TicName[51]; /* TIC filename */
|
||||
char Area[21]; /* TIC area */
|
||||
char FileName[81]; /* TIC filename */
|
||||
unsigned Orphaned : 1; /* Real orphaned file */
|
||||
|
@@ -227,7 +227,7 @@ int LoadTic(char *inb, char *tfn, orphans **opl)
|
||||
memset(&T_File, 0, sizeof(T_File));
|
||||
|
||||
snprintf(TIC.Inbound, PATH_MAX, "%s", inb);
|
||||
strncpy(TIC.TicName, tfn, 12);
|
||||
strncpy(TIC.TicName, tfn, 50);
|
||||
|
||||
chdir(inb);
|
||||
if ((tfp = fopen(tfn, "r")) == NULL) {
|
||||
|
@@ -35,7 +35,7 @@ typedef struct _tic_in {
|
||||
|
||||
typedef struct _TICrec {
|
||||
char Inbound[PATH_MAX+1]; /* Inbound directory */
|
||||
char TicName[13]; /* Name of .TIC file */
|
||||
char TicName[51]; /* Name of .TIC file */
|
||||
Tic_in TicIn; /* Original TIC record */
|
||||
fidoaddr OrgAka; /* Origin address */
|
||||
fidoaddr Aka; /* An address ? */
|
||||
|
Reference in New Issue
Block a user