From 28c7e43e450fbee86ee2d865ce04630152cdac0f Mon Sep 17 00:00:00 2001 From: Alex Young Date: Tue, 11 Mar 2014 09:49:25 +0000 Subject: [PATCH] Fix a harmless buffer overflow --- src/common/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/client.c b/src/common/client.c index a838366..37d0654 100644 --- a/src/common/client.c +++ b/src/common/client.c @@ -300,7 +300,7 @@ void client_write_init( struct client * client, uint64_t size ) struct nbd_init init = {{0}}; struct nbd_init_raw init_raw = {{0}}; - memcpy( init.passwd, INIT_PASSWD, sizeof( INIT_PASSWD ) ); + memcpy( init.passwd, INIT_PASSWD, sizeof( init.passwd ) ); init.magic = INIT_MAGIC; init.size = size; memset( init.reserved, 0, 128 );