diff --git a/proj/intercept/src/intercept.c b/proj/intercept/src/intercept.c index d843541..af73345 100644 --- a/proj/intercept/src/intercept.c +++ b/proj/intercept/src/intercept.c @@ -903,7 +903,7 @@ static void init(void) { return; } struct sockaddr_un addr = {.sun_family = AF_UNIX}; - strncpy(addr.sun_path, val + 5, sizeof(addr.sun_path)); + strcpy(addr.sun_path, val + 5); if (__real_connect(intercept, (struct sockaddr *)&addr, sizeof(addr)) == -1) { fprintf(stderr, "intercept: unable to connect to unix socket '%s': %s\n" "intercept: not logging or manipulating function/system calls\n", val + 5, strerror(errno)); __real_close(intercept);