| Summary: | 'Attach to process dialog' incorrectly adds spaces into 'ps ax' output | ||
|---|---|---|---|
| Product: | [Applications] kdevelop | Reporter: | Michal Ceresna <michal.ceresna> |
| Component: | CPP Debugger | Assignee: | kdevelop-bugs-null |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | 3.0.3 | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | psdialog patch | ||
|
Description
Michal Ceresna
2004-04-20 09:25:42 UTC
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);
}
|