used correct function (SCRUM)

This commit is contained in:
bell@sanja.is.com.ua 2003-02-28 21:17:44 +02:00
parent 609445e73f
commit e087f900e5

View file

@ -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);