From cc69752394ccb786e2da927abf0c48e28f82dc4a Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Mon, 12 Feb 2018 19:11:24 +0000 Subject: [PATCH] Use correct constant name. --- src/proxy/proxy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/proxy/proxy.c b/src/proxy/proxy.c index d3ac55a..d4224e1 100644 --- a/src/proxy/proxy.c +++ b/src/proxy/proxy.c @@ -77,11 +77,11 @@ struct proxier* proxy_create( out->init.buf = xmalloc( sizeof( struct nbd_init_raw ) ); - /* Add on the request / response size to our malloc to accommodate both + /* Add on the request / reply size to our malloc to accommodate both * the struct and the data */ out->req.buf = xmalloc( NBD_MAX_SIZE + NBD_REQUEST_SIZE ); - out->rsp.buf = xmalloc( NBD_MAX_SIZE + NBD_RESPONSE_SIZE ); + out->rsp.buf = xmalloc( NBD_MAX_SIZE + NBD_REPLY_SIZE ); log_context = xmalloc( strlen(s_upstream_address) + strlen(s_upstream_port) + 2 ); sprintf(log_context, "%s:%s", s_upstream_address, s_upstream_port);