From 96c0a54f74f1ab9f284db7d5e5ee0c7a6f341fa0 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 8 Jul 2012 23:50:34 -0500 Subject: [PATCH] Second part of prior commit --- src/ldapbonding.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ldapbonding.cpp b/src/ldapbonding.cpp index f523f88..45ad4ba 100644 --- a/src/ldapbonding.cpp +++ b/src/ldapbonding.cpp @@ -392,10 +392,12 @@ void LDAPConfig::deactivateRealm() { TQString readFullLineFromPtyProcess(PtyProcess* proc) { TQString result = ""; - while ((!result.contains("\n")) && (!result.contains(":")) && (!result.contains(">"))) { + while ((!result.contains("\r")) && (!result.contains(":")) && (!result.contains(">"))) { result = result + TQString(proc->readLine(false)); tqApp->processEvents(); } + result.replace("\n", ""); + result.replace("\r", ""); return result; }