Commits (2)
...@@ -1044,3 +1044,5 @@ ...@@ -1044,3 +1044,5 @@
" with attachment" 859 WithAttachment " with attachment" 859 WithAttachment
"%.0s\1n\1h\1m%s \1n\1msent you EchoMail on "\ 860 FidoEchoMailReceived "%.0s\1n\1h\1m%s \1n\1msent you EchoMail on "\ 860 FidoEchoMailReceived
"\1h%s \1n\1m%s\1n\r\n" "\1h%s \1n\1m%s\1n\r\n"
"\1_\1w\1hCalculating file's hash values @ELLIPSIS@\1n" 861 HashingFile
"\1[\1>" 862 HashedFile
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include "sbbs.h" #include "sbbs.h"
#include "sauce.h" #include "sauce.h"
#include "filedat.h" #include "filedat.h"
#include <algorithm>
/****************************************************************************/ /****************************************************************************/
/****************************************************************************/ /****************************************************************************/
...@@ -170,7 +171,7 @@ bool sbbs_t::uploadfile(file_t* f) ...@@ -170,7 +171,7 @@ bool sbbs_t::uploadfile(file_t* f)
} }
if(cfg.dir[f->dir]->misc&DIR_AONLY) /* Forced anonymous */ if(cfg.dir[f->dir]->misc&DIR_AONLY) /* Forced anonymous */
f->hdr.attr |= MSG_ANONYMOUS; f->hdr.attr |= MSG_ANONYMOUS;
uint32_t cdt = (uint32_t)min(length, UINT32_MAX); uint32_t cdt = (uint32_t)std::min(length, (off_t)UINT32_MAX);
smb_hfield_bin(f, SMB_COST, cdt); smb_hfield_bin(f, SMB_COST, cdt);
smb_hfield_str(f, SENDER, useron.alias); smb_hfield_str(f, SENDER, useron.alias);
bprintf(text[FileNBytesReceived],f->name, i64toac(length,tmp)); bprintf(text[FileNBytesReceived],f->name, i64toac(length,tmp));
......