From bc63d85f19e457a1083a27e03978602fbf57b09c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 11 Nov 2024 12:23:22 +0200 Subject: [PATCH] idstr: Fix docs of set_static_str_with_len() The passed string must be NUL-terminated because otherwise a copy would be necessary to make it NUL-terminated, which defeats the whole purpose of the set_static() functions. Part-of: --- girs/Gst-1.0.gir | 2 +- subprojects/gstreamer/gst/gstidstr.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/girs/Gst-1.0.gir b/girs/Gst-1.0.gir index 0def2f8a85..9693d2e87e 100644 --- a/girs/Gst-1.0.gir +++ b/girs/Gst-1.0.gir @@ -22233,7 +22233,7 @@ lifetime of the process, e.g. has to be a static string. Sets @s to the string @value of length @len. @value needs to be valid for the remaining lifetime of the process, e.g. has to be a static string. -@value does not have to be NUL-terminated and @len should not include the +@value must be NUL-terminated and @len should not include the NUL-terminator. diff --git a/subprojects/gstreamer/gst/gstidstr.c b/subprojects/gstreamer/gst/gstidstr.c index 9e3674aa34..c8e2a9c5c6 100644 --- a/subprojects/gstreamer/gst/gstidstr.c +++ b/subprojects/gstreamer/gst/gstidstr.c @@ -158,7 +158,7 @@ gst_id_str_set_static_str (GstIdStr * s, const gchar * value) * Sets @s to the string @value of length @len. @value needs to be valid for the * remaining lifetime of the process, e.g. has to be a static string. * - * @value does not have to be NUL-terminated and @len should not include the + * @value must be NUL-terminated and @len should not include the * NUL-terminator. * * Since: 1.26