aboutsummaryrefslogtreecommitdiffstats
path: root/src/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/socket.c')
-rw-r--r--src/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socket.c b/src/socket.c
index c817e723..7c412b66 100644
--- a/src/socket.c
+++ b/src/socket.c
@@ -837,7 +837,7 @@ char *osmo_sock_get_name2_c(const void *ctx, int fd)
char *str = talloc_size(ctx, OSMO_SOCK_NAME_MAXLEN);
if (!str)
return NULL;
- osmo_sock_get_name_buf(str, sizeof(str), fd);
+ osmo_sock_get_name_buf(str, OSMO_SOCK_NAME_MAXLEN, fd);
return str;
}