summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <jimw@mysql.com>2005-05-16 10:21:28 -0700
committerunknown <jimw@mysql.com>2005-05-16 10:21:28 -0700
commite9beb6d0aa8056d01637272d1782e2ae2482762d (patch)
treed780e121a55339e49547f3f9d339613422bec6a4
parent686d0ba155c01b5ef792da6debd0e5471bff7366 (diff)
downloadmariadb-git-e9beb6d0aa8056d01637272d1782e2ae2482762d.tar.gz
Cleanups based on feedback from Monty.
sql/sql_show.cc: Use int10_to_str() instead of my_snprintf() for formatting number
-rw-r--r--sql/sql_show.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc
index 93445bedf98..fe2ed04cf5d 100644
--- a/sql/sql_show.cc
+++ b/sql/sql_show.cc
@@ -1362,13 +1362,12 @@ static bool show_status_array(THD *thd, const char *wild,
{
if (bitmap_is_set(bitmap, i))
{
- end+= my_snprintf((char *)end, sizeof(buff) - (end - buff),
- "%d,", i);
+ end= int10_to_str(i, (char*) end, 10);
+ *(char*) end++= ',';
}
}
if (end != buff)
end--; // Remove last ','
- *(char *)end= 0;
}
break;
}