fixed a client-side overflow in mysql cli
This commit is contained in:
parent
5f5f7befe3
commit
16e0cae0cc
@ -1171,7 +1171,7 @@ int main(int argc,char *argv[])
|
|||||||
|
|
||||||
put_info("Welcome to the MariaDB monitor. Commands end with ; or \\g.",
|
put_info("Welcome to the MariaDB monitor. Commands end with ; or \\g.",
|
||||||
INFO_INFO);
|
INFO_INFO);
|
||||||
sprintf((char*) glob_buffer.ptr(),
|
my_snprintf((char*) glob_buffer.ptr(), glob_buffer.alloced_length(),
|
||||||
"Your %s connection id is %lu\nServer version: %s\n",
|
"Your %s connection id is %lu\nServer version: %s\n",
|
||||||
mysql_get_server_name(&mysql),
|
mysql_get_server_name(&mysql),
|
||||||
mysql_thread_id(&mysql), server_version_string(&mysql));
|
mysql_thread_id(&mysql), server_version_string(&mysql));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user