From f510fa02273e67323c0a91bfb3dca6b00b2147ad Mon Sep 17 00:00:00 2001 From: badcel <33569-badcel@users.noreply.gitlab.gnome.org> Date: Sat, 15 Apr 2023 22:53:05 +0200 Subject: gsocket: Explicitly mark size parameter as (in) The generated gir file marks the size parameter as "out" by default. This is wrong in the context of a caller allocated buffer with a given size. Explicitly marking the size parameter as (in) fixes the issue. --- gio/gsocket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/gsocket.c b/gio/gsocket.c index d25591a17..3411b7785 100644 --- a/gio/gsocket.c +++ b/gio/gsocket.c @@ -3400,7 +3400,7 @@ g_socket_receive_with_blocking (GSocket *socket, * pointer, or %NULL * @buffer: (array length=size) (element-type guint8) (out caller-allocates): * a buffer to read data into (which should be at least @size bytes long). - * @size: the number of bytes you want to read from the socket + * @size: (in): the number of bytes you want to read from the socket * @cancellable: (nullable): a %GCancellable or %NULL * @error: #GError for error reporting, or %NULL to ignore. * -- cgit v1.2.1