1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-20 13:16:36 +02:00

increase line_info msg buffer size so won't cut off long log lines

This commit is contained in:
Jfreegman
2014-09-22 13:49:09 -04:00
parent dc3b2e04ab
commit c07c0028bb
3 changed files with 4 additions and 5 deletions

View File

@ -176,7 +176,6 @@ void load_chat_history(ToxWindow *self, struct chatlog *log)
++count;
}
char buf[MAX_STR_SIZE];
const char *line = strtok(&hstbuf[start + 1], "\n");
if (line == NULL) {
@ -185,8 +184,7 @@ void load_chat_history(ToxWindow *self, struct chatlog *log)
}
while (line != NULL) {
snprintf(buf, sizeof(buf), "%s", line);
line_info_add(self, NULL, NULL, NULL, SYS_MSG, 0, 0, "%s", buf);
line_info_add(self, NULL, NULL, NULL, SYS_MSG, 0, 0, "%s", line);
line = strtok(NULL, "\n");
}