diff options
author | Thomas Weißschuh <thomas@t-8ch.de> | 2023-01-21 00:52:49 +0000 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2023-01-23 13:52:00 +0100 |
commit | c4a66fa9c67d637ed9956faf8db886d08f56e872 (patch) | |
tree | fd39b06367f8b02d71796979539f6bc3908ba98d /misc-utils/uuidd.c | |
parent | 020061e533ec922cc22ae183ae1589ee68251631 (diff) | |
download | util-linux-c4a66fa9c67d637ed9956faf8db886d08f56e872.tar.gz |
uuidd: use sizeof_member
Diffstat (limited to 'misc-utils/uuidd.c')
-rw-r--r-- | misc-utils/uuidd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc-utils/uuidd.c b/misc-utils/uuidd.c index 18fbbb652..db8b0c789 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) |