1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-08 18:53:12 +02:00

irc: allocate the string "prefix" in nick

This fixes a crash when calling the function hdata_string on the "prefix"
variable in the nick.
This commit is contained in:
Sébastien Helleu
2018-04-02 09:58:08 +02:00
parent a6d7179462
commit 3ce882daee
2 changed files with 10 additions and 8 deletions
+2 -2
View File
@@ -35,8 +35,8 @@ struct t_irc_nick
char *name; /* nickname */
char *host; /* full hostname */
char *prefixes; /* string with prefixes enabled for nick */
char prefix[2]; /* current prefix (higher prefix set in */
/* prefixes) */
char *prefix; /* current prefix (higher prefix set in */
/* prefixes); string with just one char */
int away; /* 1 if nick is away */
char *account; /* account name of the user */
char *realname; /* realname (aka gecos) of the user */