mirror of
https://github.com/Tha14/toxic.git
synced 2025-07-03 12:06:45 +02:00
A few small fixes
- Fix race condition in draw_peer() - Handle realloc_peer_list() error - Remove dead code in cmd_conference() - Reduce scope of a few variable variables - Fix possible buffer truncation in api.c
This commit is contained in:
@ -368,10 +368,10 @@ int rename_logfile(const char *src, const char *dest, const char *selfkey, const
|
||||
if (rename(newpath, new_backup) != 0) {
|
||||
goto on_error;
|
||||
}
|
||||
} else {
|
||||
if (rename(oldpath, newpath) != 0) {
|
||||
goto on_error;
|
||||
}
|
||||
}
|
||||
|
||||
if (rename(oldpath, newpath) != 0) {
|
||||
goto on_error;
|
||||
}
|
||||
|
||||
if (log != NULL) {
|
||||
|
Reference in New Issue
Block a user