mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 06:56:14 +01:00
gunixcredentialsmessage: fix this on FreeBSD
pointed out by Henry Hu https://bugzilla.gnome.org/show_bug.cgi?id=628904
This commit is contained in:
parent
cef679d004
commit
aa10574dc3
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user