From 4d056a09da457dfd6c4845f3c6fe27a11610afd4 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 1 Nov 2023 22:27:20 +0100 Subject: -fix IO bug --- src/util/conversion.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/util') diff --git a/src/util/conversion.c b/src/util/conversion.c index 1f0562f94..504bb5ac0 100644 --- a/src/util/conversion.c +++ b/src/util/conversion.c @@ -150,7 +150,7 @@ read_cb (void *cls) ec->read_size = ns; } ret = GNUNET_DISK_file_read (ec->chld_stdout, - ec->read_buf, + ec->read_buf + ec->read_pos, ec->read_size - ec->read_pos); if (ret < 0) { @@ -259,7 +259,7 @@ child_done_cb (void *cls, "Conversion helper exited with status %d and code %llu after outputting %llu bytes of data\n", (int) type, (unsigned long long) exit_code, - (unsigned long long) ec->write_pos); + (unsigned long long) ec->read_pos); if (NULL != ec->read_task) { GNUNET_SCHEDULER_cancel (ec->read_task); -- cgit v1.2.3