Fixes for compiling with memwatch
This commit is contained in:
@@ -137,7 +137,8 @@ void ForwardFile(fidoaddr Node, fa_list *sbl)
|
||||
if ((fi = OpenMacro("forward.tic", nodes.Language, FALSE)) != NULL) {
|
||||
MacroVars("abcdfghijmns", "ssdssddsssss", TIC.TicIn.Area, tic.Comment, TIC.FileCost, fgroup.Comment,
|
||||
TIC.TicIn.FullName, TIC.FileSize, TIC.FileSize / 1024,
|
||||
TIC.TicIn.Crc, TIC.TicIn.Origin, " ", TIC.TicIn.Desc, nodes.Sysop);
|
||||
TIC.TicIn.Crc, TIC.TicIn.Origin, rfcdate(TIC.FileDate),
|
||||
TIC.TicIn.Desc, nodes.Sysop);
|
||||
if (TIC.SendOrg)
|
||||
MacroVars("e", "s", TIC.RealName);
|
||||
else
|
||||
|
@@ -85,6 +85,8 @@ void closepage(FILE *fa, char *Name, FILE *fi)
|
||||
sprintf(temp2, "%s/stat/%s.temp", CFG.www_root, Name);
|
||||
rename(temp2, temp1);
|
||||
chmod(temp1, 0644);
|
||||
free(temp2);
|
||||
free(temp1);
|
||||
fa = NULL;
|
||||
}
|
||||
|
||||
|
@@ -315,7 +315,7 @@ int AddFile(struct FILERecord fdb, int Area, char *DestPath, char *FromPath)
|
||||
if ((rc = file_cp(FromPath, DestPath))) {
|
||||
WriteError("Can't move file in place");
|
||||
if (!do_quiet)
|
||||
printf("Can't copy file to %s, %s\n", temp2, strerror(rc));
|
||||
printf("Can't copy file to %s, %s\n", DestPath, strerror(rc));
|
||||
return FALSE;
|
||||
}
|
||||
chmod(DestPath, 0644);
|
||||
|
Reference in New Issue
Block a user