connection.c: Use sizeof int for allocating fd extra storage

This commit is contained in:
Kristian Høgsberg 2011-05-10 21:49:22 -04:00
parent dcfaf4ec2d
commit 7c140c8c84

View file

@ -352,7 +352,7 @@ wl_message_size_extra(const struct wl_message *message)
extra += sizeof (void *) + sizeof (struct wl_array);
break;
case 'h':
extra += sizeof (uint32_t);
extra += sizeof (int);
break;
default:
break;