1
0
mirror of https://github.com/Tha14/toxic.git synced 2026-01-25 04:43:14 +01:00

couple fixes

This commit is contained in:
Jfreegman
2014-02-11 19:12:26 -05:00
parent 16b8f85d95
commit c3d2ff6bfb
4 changed files with 9 additions and 7 deletions

View File

@@ -164,7 +164,8 @@ void cmd_sendfile(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv
uint64_t filesize = ftell(file_to_send);
fseek(file_to_send, 0, SEEK_SET);
uint8_t *filename = get_file_name(path);
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);
if (filenum == -1) {