mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 18:20:07 +01:00
used correct function (SCRUM)
This commit is contained in:
parent
609445e73f
commit
e087f900e5
1 changed files with 2 additions and 2 deletions
|
@ -1063,8 +1063,8 @@ void mysqld_list_processes(THD *thd,const char *user, bool verbose)
|
|||
if (tmp->peer_port && (tmp->host || tmp->ip))
|
||||
{
|
||||
if ((thd_info->host= thd->alloc(LIST_PROCESS_HOST_LEN+1)))
|
||||
snprintf((char *) thd_info->host, LIST_PROCESS_HOST_LEN, "%s:%u",
|
||||
thd->host_or_ip, tmp->peer_port);
|
||||
my_snprintf((char *) thd_info->host, LIST_PROCESS_HOST_LEN,
|
||||
"%s:%u", thd->host_or_ip, tmp->peer_port);
|
||||
}
|
||||
else
|
||||
thd_info->host= thd->strdup(thd->host_or_ip);
|
||||
|
|
Loading…
Add table
Reference in a new issue