From ff475669e0cb65677168d4a29928a6c1d984aa10 Mon Sep 17 00:00:00 2001 From: zautrix Date: Mon, 11 Oct 2004 09:37:01 +0000 Subject: fix file transmission with sockets --- diff --git a/libkdepim/ksyncmanager.cpp b/libkdepim/ksyncmanager.cpp index df53235..6baa2ee 100644 --- a/libkdepim/ksyncmanager.cpp +++ b/libkdepim/ksyncmanager.cpp @@ -991,7 +991,7 @@ void KServerSocket::send_file() QTextStream os( mSocket ); os.setEncoding( QTextStream::Latin1 ); while ( ! ts.atEnd() ) { - os << ts.readLine() << "\n"; + os << ts.readLine() << "\r\n"; } //os << ts.read(); file.close(); @@ -1111,7 +1111,7 @@ void KCommandSocket::writeFileToSocket() os2.setEncoding( QTextStream::Latin1 ); os2 << "PUT " << mPassWord << "\r\n";; while ( ! ts2.atEnd() ) { - os2 << ts2.readLine() << "\n"; + os2 << ts2.readLine() << "\r\n"; } mRetVal= successW; file2.close(); -- cgit v0.9.0.2