1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-12-23 17:43:24 +01:00

Force terminate filename.

This commit is contained in:
AZ Huang 2014-05-06 03:39:09 +08:00
parent dfe3f1c4c2
commit a46fe25283

View File

@ -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);