From 9a08d81b0d58d78e7f2353a088690d8d243d4425 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Sun, 17 Mar 2013 15:56:17 -0700 Subject: [PATCH] Add warning to g_base64_decode() https://bugzilla.gnome.org/show_bug.cgi?id=696015 --- glib/gbase64.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/glib/gbase64.c b/glib/gbase64.c index bcc59a6ac..cc6cbfc56 100644 --- a/glib/gbase64.c +++ b/glib/gbase64.c @@ -389,7 +389,9 @@ g_base64_decode_step (const gchar *in, * @text: zero-terminated string with base64 text to decode * @out_len: (out): The length of the decoded data is written here * - * Decode a sequence of Base-64 encoded text into binary data + * Decode a sequence of Base-64 encoded text into binary data. Note + * that the returned binary data is not necessarily zero-terminated, + * so it should not be used as a character string. * * Return value: (transfer full) (array length=out_len) (element-type guint8): * newly allocated buffer containing the binary data