mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-13 00:53:01 +01:00
Force terminate filename.
This commit is contained in:
parent
dfe3f1c4c2
commit
a46fe25283
@ -228,6 +228,8 @@ static void chat_onFileSendRequest(ToxWindow *self, Tox *m, int32_t num, uint8_t
|
||||
uint8_t msg[MAX_STR_SIZE];
|
||||
uint8_t *errmsg;
|
||||
|
||||
pathname[path_len] = '\0';
|
||||
|
||||
uint8_t filename[MAX_STR_SIZE];
|
||||
get_file_name(pathname, filename);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user