diff options
author | Davi Arnaut <Davi.Arnaut@Sun.COM> | 2009-12-18 16:44:24 -0200 |
---|---|---|
committer | Davi Arnaut <Davi.Arnaut@Sun.COM> | 2009-12-18 16:44:24 -0200 |
commit | 61ae92889808c3c38c5e449e36fc30f89e8e3f23 (patch) | |
tree | 8cb3e4210dd5da0c3cec217f0e5008ee9104715b /sql/sql_acl.cc | |
parent | f815246486444ca2dc5d408099439e1d973d3a7b (diff) | |
parent | 06a1df91813ea2c39f7312bcf8af972c7e8a926f (diff) | |
download | mariadb-git-61ae92889808c3c38c5e449e36fc30f89e8e3f23.tar.gz |
Manual merge.
Diffstat (limited to 'sql/sql_acl.cc')
-rw-r--r-- | sql/sql_acl.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc index b30c012e633..7d8f8ea71b3 100644 --- a/sql/sql_acl.cc +++ b/sql/sql_acl.cc @@ -1061,7 +1061,7 @@ int acl_getroot(THD *thd, USER_RESOURCES *mqh, *mqh= acl_user->user_resource; if (acl_user->host.hostname) - strmake(sctx->priv_host, acl_user->host.hostname, MAX_HOSTNAME); + strmake(sctx->priv_host, acl_user->host.hostname, MAX_HOSTNAME - 1); else *sctx->priv_host= 0; } @@ -1162,7 +1162,7 @@ bool acl_getroot_no_password(Security_context *sctx, char *user, char *host, sctx->priv_user= acl_user->user ? user : (char *) ""; if (acl_user->host.hostname) - strmake(sctx->priv_host, acl_user->host.hostname, MAX_HOSTNAME); + strmake(sctx->priv_host, acl_user->host.hostname, MAX_HOSTNAME - 1); else *sctx->priv_host= 0; } |