Skip to content

Commit

Permalink
Update libssh2.pas
Browse files Browse the repository at this point in the history
  • Loading branch information
pult committed Feb 25, 2018
1 parent 9db8daf commit 5504738
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libssh2.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1865,7 +1865,7 @@ function libssh2_channel_open_session(session: PLIBSSH2_SESSION): PLIBSSH2_CHANN
const
SSession = 'session';
begin
Result := libssh2_channel_open_ex(session, SSession, Length(SSession) - 1, LIBSSH2_CHANNEL_WINDOW_DEFAULT, LIBSSH2_CHANNEL_PACKET_DEFAULT, nil, 0);
Result := libssh2_channel_open_ex(session, SSession, Length(SSession), LIBSSH2_CHANNEL_WINDOW_DEFAULT, LIBSSH2_CHANNEL_PACKET_DEFAULT, nil, 0);
end;

function libssh2_channel_direct_tcpip(session: PLIBSSH2_SESSION; const host: PAnsiChar; port: Integer): PLIBSSH2_CHANNEL;
Expand Down

1 comment on commit 5504738

@Rockstein2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same "-1" also on

libssh2_channel_shell
libssh2_channel_exec
libssh2_channel_subsystem

Please sign in to comment.