summaryrefslogtreecommitdiff
path: root/security/ssh2/patches/patch-aj
blob: b4ae7f76decb8f0037c0e42f8ab913933d9de374 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-aj,v 1.1 2005/08/24 09:13:24 kivinen Exp $

--- apps/ssh/lib/sshproto/sshconn.c.orig	2003-12-03 15:17:34.000000000 +0200
+++ apps/ssh/lib/sshproto/sshconn.c
@@ -452,7 +452,8 @@ Boolean ssh_conn_send_channel_data_type(
                                      (unsigned int) SSH_MSG_CHANNEL_DATA,
                                      SSH_FORMAT_UINT32, (SshUInt32)
                                      channel->remote_id,
-                                     SSH_FORMAT_UINT32_STR, buf, len,
+                                     SSH_FORMAT_UINT32_STR, buf,
+				     (size_t) len,
                                      SSH_FORMAT_END);
         }
       else
@@ -465,7 +466,8 @@ Boolean ssh_conn_send_channel_data_type(
                                      SSH_FORMAT_UINT32, (SshUInt32)
                                      channel->remote_id,
                                      SSH_FORMAT_UINT32, (SshUInt32) i,
-                                     SSH_FORMAT_UINT32_STR, buf, len,
+                                     SSH_FORMAT_UINT32_STR, buf,
+				     (size_t) len,
                                      SSH_FORMAT_END);
         }