diff --git a/lib/rpc/rpc.c b/lib/rpc/rpc.c index 4890b66ad..985d40f46 100644 --- a/lib/rpc/rpc.c +++ b/lib/rpc/rpc.c @@ -45,7 +45,7 @@ #define RPC_DEFAULT_PORT "5260" static struct sockaddr_un g_rpc_listen_addr_unix = {}; -static char g_rpc_lock_path[sizeof(g_rpc_listen_addr_unix.sun_path) + sizeof(".lock") + 1]; +static char g_rpc_lock_path[sizeof(g_rpc_listen_addr_unix.sun_path) + sizeof(".lock")]; static int g_rpc_lock_fd = -1; static struct spdk_jsonrpc_server *g_jsonrpc_server = NULL;