summaryrefslogtreecommitdiff
path: root/testing/toxic/chat.c
diff options
context:
space:
mode:
Diffstat (limited to 'testing/toxic/chat.c')
-rw-r--r--testing/toxic/chat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/toxic/chat.c b/testing/toxic/chat.c
index a0a4b576..32c05dec 100644
--- a/testing/toxic/chat.c
+++ b/testing/toxic/chat.c
@@ -236,7 +236,7 @@ void execute(ToxWindow *self, ChatContext *ctx, Messenger *m, char *cmd)
236 wattroff(ctx->history, COLOR_PAIR(2)); 236 wattroff(ctx->history, COLOR_PAIR(2));
237 237
238 uint8_t selfname[MAX_NAME_LENGTH]; 238 uint8_t selfname[MAX_NAME_LENGTH];
239 int len = getself_name(m, selfname); 239 int len = getself_name(m, selfname, sizeof(selfname));
240 char msg[MAX_STR_SIZE-len-4]; 240 char msg[MAX_STR_SIZE-len-4];
241 snprintf(msg, sizeof(msg), "* %s %s\n", (uint8_t*) selfname, action); 241 snprintf(msg, sizeof(msg), "* %s %s\n", (uint8_t*) selfname, action);
242 242