From 44c2e66f25ecf03fb30bffba3f0988f64b0204c1 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Tue, 3 Jun 2008 23:16:34 -0400 Subject: s/sun_family/sun_path/ in assertion When Peter fixed the bug that was making the socket patch always be 0, it exposed this other bug where the assertion was making the wrong check. --- src/libply/ply-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libply/ply-utils.c b/src/libply/ply-utils.c index 1f0ce22..9b5be1b 100644 --- a/src/libply/ply-utils.c +++ b/src/libply/ply-utils.c @@ -139,7 +139,7 @@ create_unix_address_from_path (const char *path, struct sockaddr_un *address; assert (path != NULL); - assert (strlen (path) < sizeof (address->sun_family)); + assert (strlen (path) < sizeof (address->sun_path)); address = calloc (1, sizeof (struct sockaddr_un)); address->sun_family = AF_UNIX; -- cgit