mirror of
https://github.com/Tha14/toxic.git
synced 2024-12-23 18:13:24 +01:00
Fix file sender null terminator.
This commit is contained in:
parent
b969079af5
commit
dfe3f1c4c2
@ -247,7 +247,7 @@ void cmd_sendfile(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv
|
||||
|
||||
uint8_t filename[MAX_STR_SIZE];
|
||||
get_file_name(path, filename);
|
||||
int filenum = tox_new_file_sender(m, self->num, filesize, filename, strlen(filename) + 1);
|
||||
int filenum = tox_new_file_sender(m, self->num, filesize, filename, strlen(filename));
|
||||
|
||||
if (filenum == -1) {
|
||||
errmsg = "Error sending file.";
|
||||
|
Loading…
Reference in New Issue
Block a user