diff --git a/src/group_commands.c b/src/group_commands.c index 8795fde..cc8374a 100644 --- a/src/group_commands.c +++ b/src/group_commands.c @@ -33,7 +33,7 @@ void cmd_set_title(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*arg char title[MAX_STR_SIZE]; if (argc < 1) { - int tlen = tox_group_get_title(m, self->num, (uint8_t *) title); + int tlen = tox_group_get_title(m, self->num, (uint8_t *) title, TOX_MAX_NAME_LENGTH); if (tlen != -1) { title[tlen] = '\0';