1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-07 10:46:35 +01:00
This commit is contained in:
Jfreegman
2013-11-30 16:09:45 -05:00
parent f6a6aecaf5
commit c25296e65a
3 changed files with 5 additions and 9 deletions

View File

@@ -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);