summaryrefslogtreecommitdiffhomepage
path: root/src/console/ptyc_console_writer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/console/ptyc_console_writer.c')
-rw-r--r--src/console/ptyc_console_writer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/console/ptyc_console_writer.c b/src/console/ptyc_console_writer.c
index 8621515..699d0fb 100644
--- a/src/console/ptyc_console_writer.c
+++ b/src/console/ptyc_console_writer.c
@@ -69,7 +69,7 @@ int __stdcall ptyc_console_writer(struct ptyc_driver_ctx_impl * ictx)
/* account for leftover bytes from the previous conversion */
tctx->data.in[0] = uc_params.leftover_bytes;
- uc_params.src = inbuf - uc_params.leftover_bytes;
+ uc_params.src = inbuf - uc_params.leftover_count;
uc_params.src_size_in_bytes = iosb.info + uc_params.leftover_count;
uc_params.dst = tctx->data.out;