From 7ad970a01bae9ba3b10e38b23a0bfc8c245f1c73 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 29 Jul 2002 09:40:04 +0300 Subject: [PATCH] Fixed wrong usage of return value of sprintf() (From prev change set) --- sql/ha_innobase.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sql/ha_innobase.cc b/sql/ha_innobase.cc index ed96b81740c..9c732b9c715 100644 --- a/sql/ha_innobase.cc +++ b/sql/ha_innobase.cc @@ -276,9 +276,9 @@ innobase_mysql_print_thd( thd = (THD*) input_thd; /* We can't use value of sprintf() as this is not portable */ - buf=my_sprintf(buf, - (buf, "MySQL thread id %lu, query id %lu", - thd->thread_id, thd->query_id)); + buf+= my_sprintf(buf, + (buf, "MySQL thread id %lu, query id %lu", + thd->thread_id, thd->query_id)); if (thd->host) { *buf++=' ';