mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
used correct function (SCRUM)
sql/sql_show.cc: used correct function
This commit is contained in:
@ -1063,8 +1063,8 @@ void mysqld_list_processes(THD *thd,const char *user, bool verbose)
|
|||||||
if (tmp->peer_port && (tmp->host || tmp->ip))
|
if (tmp->peer_port && (tmp->host || tmp->ip))
|
||||||
{
|
{
|
||||||
if ((thd_info->host= thd->alloc(LIST_PROCESS_HOST_LEN+1)))
|
if ((thd_info->host= thd->alloc(LIST_PROCESS_HOST_LEN+1)))
|
||||||
snprintf((char *) thd_info->host, LIST_PROCESS_HOST_LEN, "%s:%u",
|
my_snprintf((char *) thd_info->host, LIST_PROCESS_HOST_LEN,
|
||||||
thd->host_or_ip, tmp->peer_port);
|
"%s:%u", thd->host_or_ip, tmp->peer_port);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
thd_info->host= thd->strdup(thd->host_or_ip);
|
thd_info->host= thd->strdup(thd->host_or_ip);
|
||||||
|
Reference in New Issue
Block a user