From 1a52d876f7e10d07f58deee6faeaf70a11a6110f Mon Sep 17 00:00:00 2001 From: Valentin Bartenev Date: Mon, 25 Jun 2018 16:51:47 +0300 Subject: Introduced nxt_length() macro. --- src/go/unit/nxt_go_port_memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/go') diff --git a/src/go/unit/nxt_go_port_memory.c b/src/go/unit/nxt_go_port_memory.c index 89530fe8..85b46bed 100644 --- a/src/go/unit/nxt_go_port_memory.c +++ b/src/go/unit/nxt_go_port_memory.c @@ -49,7 +49,7 @@ nxt_go_new_port_mmap(nxt_go_process_t *process, nxt_port_id_t id, return NULL; } - name_len = snprintf(name, sizeof(name) - 1, + name_len = snprintf(name, nxt_length(name), NXT_SHM_PREFIX "unit.go.%p", name); #if (NXT_HAVE_MEMFD_CREATE) -- cgit