Commit e087f900 authored by bell@sanja.is.com.ua's avatar bell@sanja.is.com.ua

used correct function (SCRUM)

parent 609445e7
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment