mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Actually use write_result
This commit is contained in:
parent
6349ccc97b
commit
924219b1ab
|
@ -139,6 +139,7 @@ int main(int argc, char *argv[])
|
|||
uint8_t * buffer = malloc(Messenger_size());
|
||||
Messenger_save(buffer);
|
||||
size_t write_result = fwrite(buffer, 1, Messenger_size(), file);
|
||||
if (write_result < Messenger_size()) {return 1;}
|
||||
free(buffer);
|
||||
fclose(file);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user