1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-08 04:26:35 +01:00

Load conference titles on startup for saved conferences (#43)

This commit is contained in:
JFreegman
2019-06-30 14:51:13 -04:00
committed by GitHub
parent 12b9cd2386
commit bb2257973e
7 changed files with 27 additions and 6 deletions

View File

@@ -36,7 +36,7 @@ void cmd_set_title(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*arg
if (argc < 1) {
size_t tlen = tox_conference_get_title_size(m, self->num, &err);
if (err != TOX_ERR_CONFERENCE_TITLE_OK) {
if (err != TOX_ERR_CONFERENCE_TITLE_OK || tlen >= sizeof(title)) {
line_info_add(self, NULL, NULL, NULL, SYS_MSG, 0, 0, "Title is not set");
return;
}