From e6e38f4b8a44e8df3915736a194010f287765da1 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Fri, 17 Mar 2017 11:30:24 +0000 Subject: [PATCH] gbase64: Document that g_base64_encode_close() does not nul-terminate Signed-off-by: Philip Withnall --- glib/gbase64.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/glib/gbase64.c b/glib/gbase64.c index a6cbea459..7bca5ab62 100644 --- a/glib/gbase64.c +++ b/glib/gbase64.c @@ -192,6 +192,8 @@ g_base64_encode_step (const guchar *in, * be written to it. It will need up to 4 bytes, or up to 5 bytes if * line-breaking is enabled. * + * The @out array will not be automatically nul-terminated. + * * Returns: The number of bytes of output that was written * * Since: 2.12