pult / libssh2_delphi

delphi pascal libssh2 ssh2 sftp libssh2.dll
81 stars 30 forks source link

Sorry, but why len=(Length(sth) - 1) #3

Closed Rockstein2 closed 6 years ago

Rockstein2 commented 6 years ago

why in libssh2.pas length = length (string)-1. I had to remove "1" For Example libssh2_channel_open_ex(session, SSession, Length(SSession) - 1, ...); libssh2_channel_process_startup(channel, 'shell', Length('shell') - 1, nil, 0);

pult commented 6 years ago

Thanks!. Fixed: https://github.com/pult/libssh2_delphi/commit/55047384c0b1cf79fc3dd2f8e93438ec3abd35af

Rockstein2 commented 6 years ago

Спасибо за оперативность! Странно, что никто до меня не юзал pty канал. Наверное все как sftp используют.

pult commented 6 years ago

Thanks 2! Fixed https://github.com/pult/libssh2_delphi/commit/26f8d1bbdd711bb525067c33e61cc8688791bc0f by your comment https://github.com/pult/libssh2_delphi/commit/55047384c0b1cf79fc3dd2f8e93438ec3abd35af