summaryrefslogtreecommitdiff
path: root/libmysqld
diff options
context:
space:
mode:
authorunknown <hf@deer.(none)>2003-12-12 18:27:25 +0400
committerunknown <hf@deer.(none)>2003-12-12 18:27:25 +0400
commit429675f446d125c4a25575a6f806e4d8d9e27423 (patch)
tree77c6779df41357e05c62fceedeb9ded4fc524ea3 /libmysqld
parent86f62a543c1ed8e6c7bcfcf52284aef0418ac3af (diff)
downloadmariadb-git-429675f446d125c4a25575a6f806e4d8d9e27423.tar.gz
Edited fix for #1224.
strcpy changed to strmake libmysqld/lib_sql.cc: strcpy to strmake
Diffstat (limited to 'libmysqld')
-rw-r--r--libmysqld/lib_sql.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc
index 03e3c1fee30..91a308ecb21 100644
--- a/libmysqld/lib_sql.cc
+++ b/libmysqld/lib_sql.cc
@@ -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,