summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
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)