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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user