summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-12-26 08:13:07 +0000
committermidipix <writeonce@midipix.org>2016-12-26 03:47:47 -0500
commit4d974e3930c57600e1f09e3ca888b10793521dd3 (patch)
treef84e94b68519c77d59929dc67b4c596fa44a3d56 /src
parent1317da82923ad2b86d4f485062a200e8e78824d5 (diff)
downloadptycon-4d974e3930c57600e1f09e3ca888b10793521dd3.tar.bz2
ptycon-4d974e3930c57600e1f09e3ca888b10793521dd3.tar.xz
ptyc_cat(): properly invoke ntapi's pty_write() (uint32_t bytes).
Diffstat (limited to 'src')
-rw-r--r--src/debug/ptyc_dbg_cat.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/debug/ptyc_dbg_cat.c b/src/debug/ptyc_dbg_cat.c
index e8cfb16..6071622 100644
--- a/src/debug/ptyc_dbg_cat.c
+++ b/src/debug/ptyc_dbg_cat.c
@@ -20,7 +20,7 @@ static int32_t ptyc_cat(
int32_t status;
void * hfile;
nt_iosb iosb;
- intptr_t nread;
+ uintptr_t nread;
uintptr_t buffer[32768/sizeof(uintptr_t)];
char * ch;
@@ -41,9 +41,8 @@ static int32_t ptyc_cat(
for ( ; nread; ) {
status = ntapi->pty_write(
dctx->cctx->hpts,
- hevent,0,0,
- &iosb,
- ch,nread,
+ hevent,0,0,&iosb,
+ ch,(uint32_t)nread,
0,0);
if (status == NT_STATUS_PENDING)