diff options
author | Ray Strode <rstrode@redhat.com> | 2008-06-03 23:16:34 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2008-06-03 23:16:34 -0400 |
commit | 44c2e66f25ecf03fb30bffba3f0988f64b0204c1 (patch) | |
tree | 75dc69ba90eced5663a7bff929b2cf6d61daa156 | |
parent | d1f5de39d1ed8a7fd33e8b1e81beea85b834a7eb (diff) | |
download | plymouth-44c2e66f25ecf03fb30bffba3f0988f64b0204c1.tar.gz plymouth-44c2e66f25ecf03fb30bffba3f0988f64b0204c1.tar.xz plymouth-44c2e66f25ecf03fb30bffba3f0988f64b0204c1.zip |
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.
-rw-r--r-- | src/libply/ply-utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |