aboutsummaryrefslogtreecommitdiff
path: root/src/messages.c
diff options
context:
space:
mode:
authorAudrius Butkevicius <audrius.butkevicius@gmail.com>2014-01-26 02:58:15 +0000
committerAndreas Schneider <asn@cryptomilk.org>2014-02-02 22:19:46 +0100
commitdc93edc932169566433e208df58ff5dd027774a4 (patch)
treecd30809e97046f8ff36a66d08422dd6ac14de640 /src/messages.c
parent6bbdaceaca06e3af4df5d4f265630ea651bc9044 (diff)
downloadlibssh-dc93edc932169566433e208df58ff5dd027774a4.tar.gz
libssh-dc93edc932169566433e208df58ff5dd027774a4.tar.xz
libssh-dc93edc932169566433e208df58ff5dd027774a4.zip
src: Fix argument order in ssh_channel_pty_window_change_callback
So that it would match ssh_channel_pty_request_callback as well as the documentation Signed-off-by: Audrius Butkevicius <audrius.butkevicius@gmail.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src/messages.c')
-rw-r--r--src/messages.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/messages.c b/src/messages.c
index 45d67bc6..4246c637 100644
--- a/src/messages.c
+++ b/src/messages.c
@@ -208,8 +208,8 @@ static int ssh_execute_server_request(ssh_session session, ssh_message msg)
ssh_callbacks_exists(channel->callbacks, channel_pty_window_change_function)) {
rc = channel->callbacks->channel_pty_window_change_function(session,
channel,
- msg->channel_request.height, msg->channel_request.width,
- msg->channel_request.pxheight, msg->channel_request.pxwidth,
+ msg->channel_request.width, msg->channel_request.height,
+ msg->channel_request.pxwidth, msg->channel_request.pxheight,
channel->callbacks->userdata);
} else if (msg->channel_request.type == SSH_CHANNEL_REQUEST_EXEC &&
ssh_callbacks_exists(channel->callbacks, channel_exec_request_function)) {