[glib: 1/2] Fix the annotation of g_utf8_strncpy()
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/2] Fix the annotation of g_utf8_strncpy()
- Date: Tue, 26 Apr 2022 10:23:28 +0000 (UTC)
commit 797bcf3224ef87992c0a7eaa10d5bf888ad7120e
Author: Hodong <hodong nimfsoft art>
Date: Tue Apr 26 18:54:57 2022 +0900
Fix the annotation of g_utf8_strncpy()
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]