2009/9/25 <bill_m...@hotmail.com>: > > QString testcmd =ui->lineEdit->text()+"\r\n"; > > libssh2_channel_write(channel,testcmd.toStdString().c_str(),sizeof(testcmd.toStdString().c_str()));
I don't know if this is the source of your problems but I very much doubt you should be using sizeof here. sizeof is a *compile* time constant and probably returns 1 in this case rather than the length of the string (which, I assume, was what you really intended). I image you want to use strlen() (or some safer variant) here. Alex _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel