1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-03 12:16:44 +02:00

Fix bug causing file transfer status bars to be truncated

This commit is contained in:
jfreegman
2020-11-26 15:35:04 -05:00
parent 8d9d51640c
commit 0434ac186a
2 changed files with 8 additions and 3 deletions

View File

@ -683,6 +683,9 @@ void line_info_set(ToxWindow *self, uint32_t id, char *msg)
while (line) {
if (line->id == id) {
size_t new_len = strlen(msg);
line->len = line->len - line->msg_len + new_len;
line->msg_len = new_len;
snprintf(line->msg, sizeof(line->msg), "%s", msg);
return;
}