[glib] gunixcredentialsmessage: fix this on FreeBSD



commit aa10574dc37982457765783781f5e0e67015d4ae
Author: Dan Winship <danw gnome org>
Date:   Sat Aug 27 11:36:05 2011 -0400

    gunixcredentialsmessage: fix this on FreeBSD
    
    pointed out by Henry Hu
    https://bugzilla.gnome.org/show_bug.cgi?id=628904

 gio/gunixcredentialsmessage.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gunixcredentialsmessage.c b/gio/gunixcredentialsmessage.c
index 4eebe27..47d5173 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",



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]