Do the conversion as suggested by the Qt FAQ at
http://qt-project.org/faq/answer/how_can_i_convert_a_qstring_to_char_and_vice_versa

Signed-off-by: Mihai Moldovan <[email protected]>
---
 sshmasterconnection.cpp |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


diff --git a/sshmasterconnection.cpp b/sshmasterconnection.cpp
index c8f75d6..94442f2 100644
--- a/sshmasterconnection.cpp
+++ b/sshmasterconnection.cpp
@@ -277,7 +277,8 @@ void SshMasterConnection::finalizeLibSsh()
 bool SshMasterConnection::sshConnect()
 {
     int rc;
-    ssh_options_set ( my_ssh_session, SSH_OPTIONS_HOST, host.toAscii() );
+    QByteArray tmpBA = host.toLocal8Bit();
+    ssh_options_set ( my_ssh_session, SSH_OPTIONS_HOST, tmpBA.data() );
     ssh_options_set ( my_ssh_session, SSH_OPTIONS_PORT, &port );
     rc = ssh_connect ( my_ssh_session );
     if ( rc != SSH_OK )

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
X2Go-Dev mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/x2go-dev

Reply via email to