[glib/glib-2-72: 2/39] Fix the annotation of g_utf8_strncpy()
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-72: 2/39] Fix the annotation of g_utf8_strncpy()
- Date: Tue, 20 Sep 2022 19:07:38 +0000 (UTC)
commit e77f036cb677bf04963b1ef14d7e9dd3cac57c99
Author: Hodong <hodong nimfsoft art>
Date: Tue Apr 26 18:54:57 2022 +0900
Fix the annotation of g_utf8_strncpy()
(cherry-picked from commit 797bcf3224ef87992c0a7eaa10d5bf888ad7120e)
glib/gutf8.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/gutf8.c b/glib/gutf8.c
index a4368d5f18..bb9d6fba0b 100644
--- a/glib/gutf8.c
+++ b/glib/gutf8.c
@@ -437,7 +437,7 @@ g_utf8_pointer_to_offset (const gchar *str,
* must be valid UTF-8 encoded text. (Use g_utf8_validate() on all
* text before trying to use UTF-8 utility functions with it.)
*
- * Note you must ensure @dest is at least 4 * @n to fit the
+ * Note you must ensure @dest is at least 4 * @n + 1 to fit the
* largest possible UTF-8 characters
*
* Returns: (transfer none): @dest
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]