From 3ecbd2f4aba3ed0762c3f1126fa27d0f342ee90f Mon Sep 17 00:00:00 2001 From: two Date: Sat, 2 Aug 2025 14:45:01 +0000 Subject: [PATCH] gutf8: add introspection type for `end` parameter of `validate*` fn's actually @pwithnall thought about how to fix it, i just tested and committed it Fixes: https://gitlab.gnome.org/GNOME/glib/-/issues/3743 --- glib/gutf8.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glib/gutf8.c b/glib/gutf8.c index d277b7a48..244b13462 100644 --- a/glib/gutf8.c +++ b/glib/gutf8.c @@ -2226,7 +2226,7 @@ out: * g_utf8_validate: * @str: (array length=max_len) (element-type guint8): a pointer to character data * @max_len: max bytes to validate, or `-1` to go until nul - * @end: (out) (optional) (transfer none): return location for end of valid data + * @end: (out) (optional) (transfer none) (array zero-terminated=1) (element-type guint8): return location for end of valid data * * Validates UTF-8 encoded text. * @@ -2262,7 +2262,7 @@ g_utf8_validate (const char *str, * g_utf8_validate_len: * @str: (array length=max_len) (element-type guint8): a pointer to character data * @max_len: max bytes to validate - * @end: (out) (optional) (transfer none): return location for end of valid data + * @end: (out) (optional) (transfer none) (array zero-terminated=1) (element-type guint8): return location for end of valid data * * Validates UTF-8 encoded text. *