From aa10574dc37982457765783781f5e0e67015d4ae Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Sat, 27 Aug 2011 11:36:05 -0400 Subject: [PATCH] gunixcredentialsmessage: fix this on FreeBSD pointed out by Henry Hu https://bugzilla.gnome.org/show_bug.cgi?id=628904 --- gio/gunixcredentialsmessage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/gunixcredentialsmessage.c b/gio/gunixcredentialsmessage.c index 4eebe274e..47d517377 100644 --- a/gio/gunixcredentialsmessage.c +++ b/gio/gunixcredentialsmessage.c @@ -160,7 +160,7 @@ g_unix_credentials_message_deserialize (gint level, { 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",