gunixcredentialsmessage: fix this on FreeBSD

pointed out by Henry Hu
https://bugzilla.gnome.org/show_bug.cgi?id=628904
This commit is contained in:
Dan Winship 2011-08-27 11:36:05 -04:00
parent cef679d004
commit aa10574dc3

View File

@ -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",