mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 06:10:12 +01:00
Added a separator to searching for attachment names
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
d9ed819b2b
commit
f514d68bd1
@ -1063,8 +1063,13 @@ void fill_attachment_name_buf(struct parser_state *state, char *buf){
|
||||
|
||||
int len = strlen(p);
|
||||
|
||||
if(len + state->anamepos < SMALLBUFSIZE-2){
|
||||
if(len + state->anamepos < SMALLBUFSIZE-3){
|
||||
memcpy(&(state->attachment_name_buf[state->anamepos]), p, len);
|
||||
state->anamepos += len;
|
||||
|
||||
// add a trailing separator semicolon to make sure there's separation
|
||||
// with the next item
|
||||
state->attachment_name_buf[state->anamepos] = ';';
|
||||
state->anamepos++;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user