diff options
author | badcel <33569-badcel@users.noreply.gitlab.gnome.org> | 2023-04-15 22:53:05 +0200 |
---|---|---|
committer | Marco Trevisan <mail@3v1n0.net> | 2023-04-20 08:46:14 -0400 |
commit | fd92dfd78a180f935ea64603ff9cc68affdde7f7 (patch) | |
tree | df6e0cab715337ed74d7c88eaf02eb6c3b697839 | |
parent | d677b483a73745a19b9c50f593f722cb42cc021a (diff) | |
download | glib-fd92dfd78a180f935ea64603ff9cc68affdde7f7.tar.gz |
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.
(cherry picked from commit f510fa02273e67323c0a91bfb3dca6b00b2147ad)
-rw-r--r-- | gio/gsocket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gio/gsocket.c b/gio/gsocket.c index 2dc005b63..983c05a96 100644 --- a/gio/gsocket.c +++ b/gio/gsocket.c @@ -3387,7 +3387,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. * |