summaryrefslogtreecommitdiff
path: root/testing/toxic/chat.c
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-08-13 04:12:23 -0700
committerirungentoo <irungentoo@gmail.com>2013-08-13 04:12:23 -0700
commit4cc4e79088c3478e1d50606006a39c2c872da0db (patch)
tree33a39a2d2c43327423db49fedbceef7bbbd92dad /testing/toxic/chat.c
parentfe4e37760bdbf4ad69dc596aa7e7c427412c65dc (diff)
parent6b06431e9bcbef2eb1126dda01a68d4a81f0825e (diff)
Merge pull request #447 from gladiac/fixes
Fixes
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 112b20b7..59b13492 100644
--- a/testing/toxic/chat.c
+++ b/testing/toxic/chat.c
@@ -210,7 +210,7 @@ void execute(ToxWindow *self, ChatContext *ctx, Messenger *m, char *cmd, struct
210 wattroff(ctx->history, COLOR_PAIR(2)); 210 wattroff(ctx->history, COLOR_PAIR(2));
211 211
212 uint8_t selfname[MAX_NAME_LENGTH]; 212 uint8_t selfname[MAX_NAME_LENGTH];
213 int len = getself_name(m, selfname); 213 int len = getself_name(m, selfname, sizeof(selfname));
214 char msg[MAX_STR_SIZE-len-4]; 214 char msg[MAX_STR_SIZE-len-4];
215 snprintf(msg, sizeof(msg), "* %s %s\n", (uint8_t*) selfname, action); 215 snprintf(msg, sizeof(msg), "* %s %s\n", (uint8_t*) selfname, action);
216 216