swapon: Fix buffer overflow when configuring encrypted swap on GBDE.

PR:		bin/184950
Tested by:	Radim Kolar
MFC after:	3 days
This commit is contained in:
Jilles Tjoelker 2013-12-21 11:59:58 +00:00
parent 9a2edf0198
commit 1fdb18b01f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=259677

View File

@ -266,7 +266,8 @@ static const char *
swap_on_off_gbde(const char *name, int doingall)
{
const char *ret;
char pass[64 * 2 + 1], bpass[64];
char pass[64 * 2 + 1];
unsigned char bpass[64];
char *dname;
int i, error;