aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2014-10-09 21:18:07 +0200
committerAleksander Morgado <aleksander@aleksander.es>2014-11-09 20:15:56 +0100
commit75d2b34c8c3cb78171fe0c3eb4d2dfd1c89c23ba (patch)
tree8aaad48573f9025ecc37d48a6ff827f20af1e48b
parentbdd4fa544528cfba3f7c37c5b4157890d1c9cd1f (diff)
downloadexternal_libqmi-75d2b34c8c3cb78171fe0c3eb4d2dfd1c89c23ba.zip
external_libqmi-75d2b34c8c3cb78171fe0c3eb4d2dfd1c89c23ba.tar.gz
external_libqmi-75d2b34c8c3cb78171fe0c3eb4d2dfd1c89c23ba.tar.bz2
libqmi-glib,utils: fix documentation when reading fixed size strings
-rw-r--r--src/libqmi-glib/qmi-utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libqmi-glib/qmi-utils.c b/src/libqmi-glib/qmi-utils.c
index 3875a0b..920bc1e 100644
--- a/src/libqmi-glib/qmi-utils.c
+++ b/src/libqmi-glib/qmi-utils.c
@@ -909,9 +909,9 @@ qmi_utils_read_string_from_buffer (const guint8 **buffer,
* @buffer: a buffer with raw binary data.
* @buffer_size: size of @buffer.
* @fixed_size: number of bytes to read.
- * @out: return location for the read string. The returned value should be freed with g_free().
+ * @out: buffer preallocated by the client, with at least @fixed_size bytes.
*
- * Reads a @fixed_size-sized string from the buffer.
+ * Reads a @fixed_size-sized string from the buffer into the @out buffer.
*
* Also note that both @buffer and @buffer_size get updated after the
* @fixed_size bytes read.