Version: 3.0.3, cvs (using KDE KDE 3.2.1) Installed from: Compiled From Sources Compiler: gcc version 3.3.3 (Debian 20040306) OS: Linux the 'ps' output lines in the dialog contain randomly inserted spaces, because of the '+1' in the slotReceivedOutput() QT:3.2.3
Created attachment 5706 [details] psdialog patch
I can't reproduce the problem. Everything looks good here. Anyone?
CVS commit by mattr: Fix bug 79986. Don't add one to the length since it would technically be out of bounds of the current string. Thanks for the patch. :) BUGS: 79986 M +1 -1 dbgpsdlg.cpp 1.14 --- kdevelop/languages/cpp/debugger/dbgpsdlg.cpp #1.13:1.14 @@ -140,5 +140,5 @@ int Dbg_PS_Dialog::pidSelected() void Dbg_PS_Dialog::slotReceivedOutput(KProcess */*proc*/, char *buffer, int buflen) { - pidLines_ += QString::fromLocal8Bit(buffer, buflen+1); + pidLines_ += QString::fromLocal8Bit(buffer, buflen); }
CVS commit by mattr: Backport the fix for 79986. It should be in KDevelop 3.2.1 CCBUG: 79986 M +1 -1 dbgpsdlg.cpp 1.13.4.1 --- kdevelop/languages/cpp/debugger/dbgpsdlg.cpp #1.13:1.13.4.1 @@ -140,5 +140,5 @@ int Dbg_PS_Dialog::pidSelected() void Dbg_PS_Dialog::slotReceivedOutput(KProcess */*proc*/, char *buffer, int buflen) { - pidLines_ += QString::fromLocal8Bit(buffer, buflen+1); + pidLines_ += QString::fromLocal8Bit(buffer, buflen); }