summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2008-06-03 23:16:34 -0400
committerRay Strode <rstrode@redhat.com>2008-06-03 23:16:34 -0400
commit44c2e66f25ecf03fb30bffba3f0988f64b0204c1 (patch)
tree75dc69ba90eced5663a7bff929b2cf6d61daa156
parentd1f5de39d1ed8a7fd33e8b1e81beea85b834a7eb (diff)
downloadplymouth-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.c2
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;