luad

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 0b9189a4129049050ac801418d6c2d9754a27a55
parent 3788f97dbf79bcfe2989577afecc418aeb0c9cfd
Author: Daniel Barlow <dan@telent.net>
Date:   Tue, 19 May 2026 17:59:25 +0100

off-by-one

Diffstat:
Mluad.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/luad.c b/luad.c @@ -33,7 +33,7 @@ static void handle_sigchld(int num) { int open_socket(char * pathname) { struct sockaddr_un addr; addr.sun_family = AF_UNIX; - if(strlen(pathname) > sizeof(addr.sun_path)) { + if(strlen(pathname) >= sizeof(addr.sun_path)) { die("pathname \"%s\" is too long to bind as unix socket (max %lu)", pathname, sizeof(addr.sun_path)); }