diff options
author | kyak <bas@bmail.ru> | 2015-08-29 15:36:05 +0300 |
---|---|---|
committer | kyak <bas@bmail.ru> | 2015-08-29 15:36:05 +0300 |
commit | b065f2a0112fe733878c17375d16cf12a3457e09 (patch) | |
tree | d8c7641a043a54125840758d6f02cc1e6aae41ca /src/irc | |
parent | b7d82ecdcee3224ca5280977d0ffd7b5e0fb07d2 (diff) | |
download | irssi-b065f2a0112fe733878c17375d16cf12a3457e09.zip |
Use HOST_NAME_MAX for userhost and hostname expandos
Use HOST_NAME_MAX instead of hardcoded 100 for userhost
and hostname expandos.
Diffstat (limited to 'src/irc')
-rw-r--r-- | src/irc/core/irc-expandos.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/irc/core/irc-expandos.c b/src/irc/core/irc-expandos.c index df0326a2..9604c625 100644 --- a/src/irc/core/irc-expandos.c +++ b/src/irc/core/irc-expandos.c @@ -56,7 +56,8 @@ static char *expando_userhost(SERVER_REC *server, void *item, int *free_ret) { IRC_SERVER_REC *ircserver; const char *username; - char hostname[100]; + char hostname[HOST_NAME_MAX]; + ircserver = IRC_SERVER(server); @@ -80,7 +81,7 @@ static char *expando_userhost(SERVER_REC *server, void *item, int *free_ret) static char *expando_hostname(SERVER_REC *server, void *item, int *free_ret) { IRC_SERVER_REC *ircserver; - char hostname[100]; + char hostname[HOST_NAME_MAX]; char **list; char *hostname_split; |