From bba1e68ba75a24cbd95c25616bfddbb41a57c4ca Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Wei=C3=9Fschuh?= Date: Sat, 21 Jan 2023 00:52:49 +0000 Subject: [PATCH] uuidd: use sizeof_member --- misc-utils/uuidd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc-utils/uuidd.c b/misc-utils/uuidd.c index 18fbbb652a..db8b0c789d 100644 --- a/misc-utils/uuidd.c +++ b/misc-utils/uuidd.c @@ -725,7 +725,7 @@ int main(int argc, char **argv) parse_options(argc, argv, &uuidd_cxt, &uuidd_opts); - if (strlen(uuidd_opts.socket_path) >= sizeof(((struct sockaddr_un *)0)->sun_path)) + if (strlen(uuidd_opts.socket_path) >= sizeof_member(struct sockaddr_un, sun_path)) errx(EXIT_FAILURE, _("socket name too long: %s"), uuidd_opts.socket_path); if (!uuidd_opts.no_pid && !uuidd_opts.pidfile_path) -- 2.47.3