diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-11-01 22:27:20 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-11-01 22:27:20 +0100 |
commit | 4d056a09da457dfd6c4845f3c6fe27a11610afd4 (patch) | |
tree | db238135b5d511501ec1ea782e27133db19ba1a5 /src/util | |
parent | ce27f8f758c2e017c5245363f87bf89248d4b6b6 (diff) | |
download | exchange-4d056a09da457dfd6c4845f3c6fe27a11610afd4.tar.xz |
-fix IO bug
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/conversion.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |