mirror of
https://github.com/Tha14/toxic.git
synced 2025-12-16 10:16:35 +01:00
Fix a few issues
- realloc needs to be error checked - use correct format specifiers - make sure optarg and DATA_FILE aren't null before using them
This commit is contained in:
@@ -92,7 +92,7 @@ int avatar_send(Tox *m, uint32_t friendnum)
|
||||
}
|
||||
|
||||
if (err != TOX_ERR_FILE_SEND_OK) {
|
||||
fprintf(stderr, "tox_file_send failed for friendnumber %d (error %d)\n", friendnum, err);
|
||||
fprintf(stderr, "tox_file_send failed for friendnumber %u (error %d)\n", friendnum, err);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user