mirror of
https://github.com/MariaDB/server.git
synced 2025-11-12 10:22:39 +03:00
Fixed wrong usage of return value of sprintf() (From prev change set)
This commit is contained in:
@@ -276,9 +276,9 @@ innobase_mysql_print_thd(
|
|||||||
thd = (THD*) input_thd;
|
thd = (THD*) input_thd;
|
||||||
|
|
||||||
/* We can't use value of sprintf() as this is not portable */
|
/* We can't use value of sprintf() as this is not portable */
|
||||||
buf=my_sprintf(buf,
|
buf+= my_sprintf(buf,
|
||||||
(buf, "MySQL thread id %lu, query id %lu",
|
(buf, "MySQL thread id %lu, query id %lu",
|
||||||
thd->thread_id, thd->query_id));
|
thd->thread_id, thd->query_id));
|
||||||
if (thd->host)
|
if (thd->host)
|
||||||
{
|
{
|
||||||
*buf++=' ';
|
*buf++=' ';
|
||||||
|
|||||||
Reference in New Issue
Block a user