check: Avoid error: array subscript is above array bounds
authorEdward Hervey <bilboed@bilboed.com>
Mon, 6 Sep 2010 16:33:51 +0000 (18:33 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Mon, 6 Sep 2010 16:37:29 +0000 (18:37 +0200)
Could have come up with something better for my 2000th commit
to GStreamer...

tests/check/gst/gstvalue.c

index e33d4df..c53cfa8 100644 (file)
@@ -2433,7 +2433,7 @@ GST_START_TEST (test_serialize_int64_range)
 
   fail_unless (int64_ranges_size == int64_range_strings_size);
 
-  while (i < (int64_ranges_size * 2)) {
+  while (i + 1 < (int64_ranges_size * 2)) {
     if ((i + 1) % 2) {
       gchar *str;
       gchar *str2;