1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-07-17 17:29:23 -04:00
ports/devel/glib20/files/patch-gio_gunixcredentialsmessage.c
Joe Marcus Clarke a297c3d6c8 Incorporate some patches from glib git to fix default application handling
and UNIX credential message passing.
2011-09-25 15:43:59 +00:00

16 lines
602 B
C

--- gio/gunixcredentialsmessage.c.orig 2011-09-25 11:42:09.000000000 -0400
+++ gio/gunixcredentialsmessage.c 2011-09-25 11:42:22.000000000 -0400
@@ -162,11 +162,11 @@ g_unix_credentials_message_deserialize (
{
goto out;
}
- if (size < CMSG_LEN (sizeof *cred))
+ if (size < sizeof *cred)
{
g_warning ("Expected a struct cmsgcred (%" G_GSIZE_FORMAT " bytes) but "
"got %" G_GSIZE_FORMAT " bytes of data",
- CMSG_LEN (sizeof *cred),
+ sizeof *cred,
size);
goto out;
}