[libsoup] chunk-io-test: fix a bug



commit 825e817118a3e046e3b11443b518cc552a168aee
Author: Dan Winship <danw gnome org>
Date:   Tue Aug 27 11:22:59 2013 -0400

    chunk-io-test: fix a bug

 tests/chunk-io-test.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/chunk-io-test.c b/tests/chunk-io-test.c
index 7606d41..f1f96b0 100644
--- a/tests/chunk-io-test.c
+++ b/tests/chunk-io-test.c
@@ -617,7 +617,7 @@ do_io_tests (void)
        g_object_unref (oslow);
 
        total = 0;
-       while (total < nwrote) {
+       while (total < raw_length) {
                nwrote = g_output_stream_write (out, raw_contents + total,
                                                raw_length - total, NULL, NULL);
                if (nwrote == -1)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]