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 2013-12-21 11:59:58 +00:00
parent 5da3574e72
commit a28caa4777

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;