Fixes for compiling with memwatch

This commit is contained in:
Michiel Broek
2002-05-11 11:14:35 +00:00
parent e3a8865b45
commit 741e8a077d
8 changed files with 20 additions and 20 deletions

View File

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

View File

@@ -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;
}

View File

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