mirror of
https://github.com/Tha14/toxic.git
synced 2025-12-07 10:46:35 +01:00
fixes
This commit is contained in:
@@ -332,12 +332,10 @@ static void load_data(Tox *m, char *path)
|
||||
tox_load(m, buf, len);
|
||||
|
||||
uint32_t i = 0;
|
||||
|
||||
uint8_t name[TOX_MAX_NAME_LENGTH];
|
||||
while (tox_get_name(m, i, name) != -1) {
|
||||
on_friendadded(m, i);
|
||||
i++;
|
||||
}
|
||||
|
||||
while (tox_get_name(m, i, name) != -1)
|
||||
on_friendadded(m, i++);
|
||||
|
||||
free(buf);
|
||||
fclose(fd);
|
||||
|
||||
Reference in New Issue
Block a user