mirror of
https://github.com/MariaDB/server.git
synced 2026-05-04 06:05:32 +02:00
strmake_buf(X,Y) helper, equivalent to strmake(X,Y,sizeof(X)-1)
with a bit of lame protection against abuse.
This commit is contained in:
parent
4656060f11
commit
07315d3603
27 changed files with 102 additions and 121 deletions
|
|
@ -2011,8 +2011,7 @@ public:
|
|||
DBUG_ENTER("Delayed_insert constructor");
|
||||
thd.security_ctx->user=(char*) delayed_user;
|
||||
thd.security_ctx->host=(char*) my_localhost;
|
||||
strmake(thd.security_ctx->priv_user, thd.security_ctx->user,
|
||||
USERNAME_LENGTH);
|
||||
strmake_buf(thd.security_ctx->priv_user, thd.security_ctx->user);
|
||||
thd.current_tablenr=0;
|
||||
thd.command=COM_DELAYED_INSERT;
|
||||
thd.lex->current_select= 0; // for my_message_sql
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue