Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
openSUSE:Evergreen:11.4
procps
procps-3.2.5-top-rc.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File procps-3.2.5-top-rc.patch of Package procps
--- 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
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor