summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/src/mobile/mncc_sock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/host/layer23/src/mobile/mncc_sock.c')
-rw-r--r--src/host/layer23/src/mobile/mncc_sock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/host/layer23/src/mobile/mncc_sock.c b/src/host/layer23/src/mobile/mncc_sock.c
index 73159270..39eb7bcc 100644
--- a/src/host/layer23/src/mobile/mncc_sock.c
+++ b/src/host/layer23/src/mobile/mncc_sock.c
@@ -315,7 +315,7 @@ int osmo_unixsock_listen(struct osmo_fd *bfd, int type, const char *path)
}
local.sun_family = AF_UNIX;
- strncpy(local.sun_path, path, sizeof(local.sun_path));
+ osmo_strlcpy(local.sun_path, path, sizeof(local.sun_path));
local.sun_path[sizeof(local.sun_path) - 1] = '\0';
unlink(local.sun_path);