summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2001-10-18 14:46:01 +0000
committerJP Rosevear <jpr@src.gnome.org>2001-10-18 14:46:01 +0000
commit3c964d7328d2620eb41b9494800c3b0453e4407a (patch)
treef8b897d3bb65c9ab783b9f9c6d40d5658f88cc9d
parentbe2c123d6ea8f6739ecfd01d28c91a87524707e5 (diff)
downloadlibsoup-3c964d7328d2620eb41b9494800c3b0453e4407a.tar.gz
the array length assertion should be >= rather than less than.
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.
-rw-r--r--ChangeLog5
-rw-r--r--libsoup/soup-transfer.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 95363d96..88c9abae 100644
--- 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
diff --git a/libsoup/soup-transfer.c b/libsoup/soup-transfer.c
index f32cf89c..e622531e 100644
--- a/libsoup/soup-transfer.c
+++ b/libsoup/soup-transfer.c
@@ -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];