Fix eventual overflow

This commit is contained in:
Alex 2020-07-29 15:23:55 +02:00
parent 50db5a6948
commit 0f73ea68d8
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ IRC_Message* Assm_cmd_USER(char* user, char* realname, int modes)
return NULL;
clear_assm();
static char local_mode[2];
sprintf(local_mode, "%i", modes);
snprintf(local_mode, 2, "%i", modes);
imassm_mesg.args[0] = user;
imassm_mesg.args[1] = local_mode;
imassm_mesg.args[2] = RESERVED;