From 7dfde773f65279a86fc5ac54e389e4ad4d7c714c Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Mon, 20 Mar 2023 11:55:53 +0000 Subject: [PATCH] gstrfuncs: Clarify haystack_len behaviour of g_strstr_len() Signed-off-by: Philip Withnall Fixes: #159 --- glib/gstrfuncs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/gstrfuncs.c b/glib/gstrfuncs.c index af552da55..391cf569b 100644 --- a/glib/gstrfuncs.c +++ b/glib/gstrfuncs.c @@ -2768,7 +2768,7 @@ g_strjoin (const gchar *separator, * * Searches the string @haystack for the first occurrence * of the string @needle, limiting the length of the search - * to @haystack_len. + * to @haystack_len or a nul terminator byte (whichever is reached first). * * Returns: a pointer to the found occurrence, or * %NULL if not found.