fix off-by-one in marker id test
[lttv.git] / ltt / branches / poly / ltt / marker.h
index e3d4cd3d96b8706860563cba05fdcff998d212ea..73c7f24796c7d62d5c5e6bca0a20656e0d2e4d8a 100644 (file)
@@ -52,7 +52,7 @@ static inline guint16 marker_get_id_from_info(LttTrace *trace,
 static inline struct marker_info *marker_get_info_from_id(LttTrace *trace,
     guint16 id)
 {
-  if (unlikely(trace->markers->len < id))
+  if (unlikely(trace->markers->len <= id))
     return NULL;
   return &g_array_index(trace->markers, struct marker_info, id);
 }
This page took 0.029326 seconds and 4 git commands to generate.