Add warning to g_base64_decode()
authorDavid Schleef <ds@schleef.org>
Sun, 17 Mar 2013 22:56:17 +0000 (15:56 -0700)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 18 Mar 2013 02:48:53 +0000 (22:48 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=696015

glib/gbase64.c

index bcc59a6..cc6cbfc 100644 (file)
@@ -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