diff options
author | Sergei Golubchik <serg@mysql.com> | 2009-05-04 22:33:23 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mysql.com> | 2009-05-04 22:33:23 +0200 |
commit | ad7518418ca73f9ed25f5c4e45826d055d3ceac7 (patch) | |
tree | 2c7fffd24732e835d1f2922055e690988dff453b /sql/sql_update.cc | |
parent | 7e66dbea482d7801e9650d58db9b872556322e75 (diff) | |
download | mariadb-git-ad7518418ca73f9ed25f5c4e45826d055d3ceac7.tar.gz |
bug#44166
removed few sprintf's
Diffstat (limited to 'sql/sql_update.cc')
-rw-r--r-- | sql/sql_update.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/sql_update.cc b/sql/sql_update.cc index b3bd5d0bc57..1a8c43f46aa 100644 --- a/sql/sql_update.cc +++ b/sql/sql_update.cc @@ -818,7 +818,7 @@ int mysql_update(THD *thd, if (error < 0) { char buff[STRING_BUFFER_USUAL_SIZE]; - sprintf(buff, ER(ER_UPDATE_INFO), (ulong) found, (ulong) updated, + my_snprintf(buff, sizeof(buff), ER(ER_UPDATE_INFO), (ulong) found, (ulong) updated, (ulong) thd->cuted_fields); thd->row_count_func= (thd->client_capabilities & CLIENT_FOUND_ROWS) ? found : updated; @@ -2066,8 +2066,8 @@ bool multi_update::send_eof() id= thd->arg_of_last_insert_id_function ? thd->first_successful_insert_id_in_prev_stmt : 0; - sprintf(buff, ER(ER_UPDATE_INFO), (ulong) found, (ulong) updated, - (ulong) thd->cuted_fields); + my_snprintf(buff, sizeof(buff), ER(ER_UPDATE_INFO), + (ulong) found, (ulong) updated, (ulong) thd->cuted_fields); thd->row_count_func= (thd->client_capabilities & CLIENT_FOUND_ROWS) ? found : updated; ::my_ok(thd, (ulong) thd->row_count_func, id, buff); |