Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 199754 Details for
Bug 279819
[patch] sys-process/procps - top ignores .toprc
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch that fixed the issue for me.
procps-3.2.5-top-rc.patch (text/plain), 557 bytes, created by
Michal Terepeta
on 2009-07-31 19:25:04 UTC
(
hide
)
Description:
Patch that fixed the issue for me.
Filename:
MIME Type:
Creator:
Michal Terepeta
Created:
2009-07-31 19:25:04 UTC
Size:
557 bytes
patch
obsolete
>--- procps-3.2.5/top.c.rc 2005-06-28 22:36:24.000000000 +0200 >+++ procps-3.2.5/top.c 2005-06-28 22:40:27.000000000 +0200 >@@ -2393,7 +2393,10 @@ > int i; > > for (i = 0; i < GROUPSMAX; i++) { >- win_names(&Winstk[i], Winstk[i].rc.winname); >+ /* Please, never use something like sprintf(x, "%s", x); ... see win_names() */ >+ char buf[WINNAMSIZ]; >+ strncpy(buf, Winstk[i].rc.winname, WINNAMSIZ); >+ win_names(&Winstk[i], buf); > capsmk(&Winstk[i]); > } > // rely on this next guy to force a call (eventually) to reframewins
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 279819
: 199754