From 4af135ce49e5c8aa8231e0c9e24f04f5cd917468 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Tue, 5 Nov 2013 16:43:26 +0000 Subject: [PATCH] garray: Note lack of bounds checking in g_ptr_array_index() documentation --- glib/garray.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/glib/garray.c b/glib/garray.c index 3bfbe9d..a93044b 100644 --- a/glib/garray.c +++ b/glib/garray.c @@ -865,6 +865,10 @@ struct _GRealPtrArray * * Returns the pointer at the given index of the pointer array. * + * + * This does not perform bounds checking on the given @index_, so you are + * responsible for checking it against the array length. + * * Returns: the pointer at the given index. **/ -- 2.7.4