1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

A fix for small stack overflow ...

This commit is contained in:
unknown
2003-06-03 18:25:45 +03:00
parent cd468fbf70
commit c9505d8fc1

View File

@ -196,7 +196,7 @@ static bool check_user(THD *thd,enum_server_command command, const char *user,
thd->db=0;
thd->db_length=0;
USER_RESOURCES ur;
char tmp_passwd[SCRAMBLE_LENGTH];
char tmp_passwd[SCRAMBLE_LENGTH + 1];
if (passwd[0] && strlen(passwd) != SCRAMBLE_LENGTH)
return 1;