diff options
author | unknown <knielsen@knielsen-hq.org> | 2011-01-06 15:55:29 +0100 |
---|---|---|
committer | unknown <knielsen@knielsen-hq.org> | 2011-01-06 15:55:29 +0100 |
commit | d653a80d2a62669243477b82757068a1b7874dbb (patch) | |
tree | 178d698822e7546c80fd136f6bd6d81e360f9fc5 /sql-common | |
parent | 31a78529bc5c4431865eba06762e6cc66359f759 (diff) | |
download | mariadb-git-d653a80d2a62669243477b82757068a1b7874dbb.tar.gz |
MBug#698132: Fix wrong buffer calculation in send_change_user_packet()
Diffstat (limited to 'sql-common')
-rw-r--r-- | sql-common/client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql-common/client.c b/sql-common/client.c index 3788ca9829b..c449cd17100 100644 --- a/sql-common/client.c +++ b/sql-common/client.c @@ -1978,7 +1978,7 @@ static int send_change_user_packet(MCPVIO_EXT *mpvio, char *buff, *end; int res= 1; - buff= my_alloca(USERNAME_LENGTH + data_len + 1 + NAME_LEN + 2 + NAME_LEN); + buff= my_alloca(USERNAME_LENGTH+1 + data_len+1 + NAME_LEN+1 + 2 + NAME_LEN+1); end= strmake(buff, mysql->user, USERNAME_LENGTH) + 1; |