Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, for more info) to build successfully.

Commit 27b2494b authored by rswindell's avatar rswindell

Fix FTN file-attachment download issue where "Download attached file" prompt

would reuse the same buffer where the message subject (list of filenames)
was stored causing havok. Reported by Alterego (ALTERANT).
parent 2030e279
......@@ -384,10 +384,11 @@ void sbbs_t::download_msg_attachments(smb_t* smb, smbmsg_t* msg, bool del)
if(msg->hdr.auxattr&MSG_FILEATTACH) { /* Attached file */
char subj[FIDO_SUBJ_LEN];
smb_getmsgidx(smb, msg);
SAFECOPY(str, msg->subj); /* filenames (multiple?) in title */
SAFECOPY(subj, msg->subj); /* filenames (multiple?) in title */
char *p,*tp,ch;
while(online) {
p=strchr(tp,' ');
if(p) *p=0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment