mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
Edited fix for #1224.
strcpy changed to strmake libmysqld/lib_sql.cc: strcpy to strmake
This commit is contained in:
parent
86f62a543c
commit
429675f446
1 changed files with 1 additions and 1 deletions
|
@ -224,7 +224,7 @@ static bool check_user(THD *thd,enum_server_command command, const char *user,
|
|||
send_error(net,ER_OUT_OF_RESOURCES);
|
||||
return 1;
|
||||
}
|
||||
strcpy(thd->priv_host, LOCAL_HOST);
|
||||
strmake(thd->priv_host, LOCAL_HOST, sizeof(thd->priv_host)-1);
|
||||
thd->master_access=acl_getroot(thd, thd->host, thd->ip, thd->user,
|
||||
passwd, thd->scramble,
|
||||
&thd->priv_user, thd->priv_host,
|
||||
|
|
Loading…
Add table
Reference in a new issue