diff options
Diffstat (limited to 'src')
-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); |