Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
5fe7bb33
Commit
5fe7bb33
authored
Apr 10, 2019
by
rswindell
Browse files
Missed the init of fd.dir.
parent
c3a7d672
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
src/sbbs3/getmsg.cpp
src/sbbs3/getmsg.cpp
+1
-0
src/sbbs3/readmail.cpp
src/sbbs3/readmail.cpp
+0
-3
No files found.
src/sbbs3/getmsg.cpp
View file @
5fe7bb33
...
...
@@ -323,6 +323,7 @@ void sbbs_t::download_msg_attachments(smb_t* smb, smbmsg_t* msg, bool del)
if
(
!
sp
)
sp
=
strrchr
(
tp
,
'\\'
);
if
(
sp
)
tp
=
sp
+
1
;
file_t
fd
;
fd
.
dir
=
cfg
.
total_dirs
+
1
;
/* temp dir for file attachments */
padfname
(
tp
,
fd
.
name
);
SAFEPRINTF3
(
fpath
,
"%sfile/%04u.in/%s"
/* path is path/fname */
,
cfg
.
data_dir
,
msg
->
idx
.
to
,
tp
);
...
...
src/sbbs3/readmail.cpp
View file @
5fe7bb33
...
...
@@ -67,7 +67,6 @@ void sbbs_t::readmail(uint usernumber, int which, long lm_mode)
long
l
,
last_mode
;
ulong
last
;
bool
replied
;
file_t
fd
;
mail_t
*
mail
;
smbmsg_t
msg
;
char
search_str
[
128
]
=
""
;
...
...
@@ -89,8 +88,6 @@ void sbbs_t::readmail(uint usernumber, int which, long lm_mode)
msg
.
total_hfields
=
0
;
/* init to NULL, cause not allocated yet */
fd
.
dir
=
cfg
.
total_dirs
+
1
;
/* temp dir for file attachments */
if
((
i
=
smb_stack
(
&
smb
,
SMB_STACK_PUSH
))
!=
0
)
{
errormsg
(
WHERE
,
ERR_OPEN
,
"MAIL"
,
i
);
return
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment