exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 4d056a09da457dfd6c4845f3c6fe27a11610afd4
parent ce27f8f758c2e017c5245363f87bf89248d4b6b6
Author: Christian Grothoff <christian@grothoff.org>
Date:   Wed,  1 Nov 2023 22:27:20 +0100

-fix IO bug

Diffstat:
Msrc/util/conversion.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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);