proj/intercept.c: Fix minor bug
This commit is contained in:
@@ -903,7 +903,7 @@ static void init(void) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
struct sockaddr_un addr = {.sun_family = AF_UNIX};
|
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) {
|
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));
|
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);
|
__real_close(intercept);
|
||||||
|
|||||||
Reference in New Issue
Block a user