the array length assertion should be >= rather than less than.
authorJP Rosevear <jpr@ximian.com>
Thu, 18 Oct 2001 14:46:01 +0000 (14:46 +0000)
committerJP Rosevear <jpr@src.gnome.org>
Thu, 18 Oct 2001 14:46:01 +0000 (14:46 +0000)
2001-10-18  JP Rosevear  <jpr@ximian.com>

* src/libsoup/soup-transfer.c (remove_block_at_index): the array
length assertion should be >= rather than less than.

ChangeLog
libsoup/soup-transfer.c

index 95363d9..88c9aba 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-10-18  JP Rosevear  <jpr@ximian.com>
+
+       * src/libsoup/soup-transfer.c (remove_block_at_index): the array
+       length assertion should be >= rather than less than.
+
 2001-10-17  Alex Graveley  <alex@ximian.com>
 
        * src/libsoup/soup-transfer.c (read_content_length): Don't call
index f32cf89..e622531 100644 (file)
@@ -133,7 +133,7 @@ remove_block_at_index (GByteArray *arr, gint offset, gint length)
        gchar *data;
 
        g_return_if_fail (length != 0);
-       g_assert (arr->len < offset + length);
+       g_assert (arr->len >= offset + length);
 
        data = &arr->data [offset];