diff options
Diffstat (limited to 'testing/toxic/chat.c')
-rw-r--r-- | testing/toxic/chat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/toxic/chat.c b/testing/toxic/chat.c index 32c05dec..35be3bd3 100644 --- a/testing/toxic/chat.c +++ b/testing/toxic/chat.c | |||
@@ -181,7 +181,7 @@ static void chat_onKey(ToxWindow *self, Messenger *m, int key) | |||
181 | /* make sure the string has at least non-space character */ | 181 | /* make sure the string has at least non-space character */ |
182 | if (!string_is_empty(ctx->line)) { | 182 | if (!string_is_empty(ctx->line)) { |
183 | uint8_t selfname[MAX_NAME_LENGTH]; | 183 | uint8_t selfname[MAX_NAME_LENGTH]; |
184 | getself_name(m, selfname); | 184 | getself_name(m, selfname, sizeof(selfname)); |
185 | fix_name(selfname); | 185 | fix_name(selfname); |
186 | 186 | ||
187 | wattron(ctx->history, COLOR_PAIR(2)); | 187 | wattron(ctx->history, COLOR_PAIR(2)); |