mirror of
https://github.com/Tha14/toxic.git
synced 2024-12-23 20:33:25 +01:00
fix
This commit is contained in:
parent
ebf7d4517f
commit
da99d776df
@ -535,7 +535,7 @@ static void groupchat_onDraw(ToxWindow *self, Tox *m)
|
||||
|
||||
/* truncate nick to fit in side panel without modifying list */
|
||||
uint8_t tmpnck[TOX_MAX_NAME_LENGTH];
|
||||
memcpy(tmpnck, &groupchats[self->num].peer_names[peer*N], SIDEBAR_WIDTH-3);
|
||||
memcpy(tmpnck, &groupchats[self->num].peer_names[peer*N], SIDEBAR_WIDTH-2);
|
||||
tmpnck[SIDEBAR_WIDTH-2] = '\0';
|
||||
|
||||
wprintw(ctx->sidebar, "%s\n", tmpnck);
|
||||
|
Loading…
Reference in New Issue
Block a user