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
3b8c7cf6
Commit
3b8c7cf6
authored
Aug 08, 2018
by
rswindell
Browse files
Additional fix to mime_getattachment() - terminate the filename at the
first white-space character encountered.
parent
61860388
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/smblib/smbtxt.c
src/smblib/smbtxt.c
+3
-0
No files found.
src/smblib/smbtxt.c
View file @
3b8c7cf6
...
...
@@ -313,6 +313,9 @@ static BOOL mime_getattachment(char* beg, char* end, char* attachment)
term
=
filename
+
sizeof
(
fname
)
-
1
;
memcpy
(
fname
,
filename
,
term
-
filename
);
fname
[
term
-
filename
]
=
0
;
term
=
fname
;
FIND_WHITESPACE
(
term
);
*
term
=
0
;
strcpy
(
attachment
,
getfname
(
fname
));
return
TRUE
;
}
...
...
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