Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 279819
Collapse All | Expand All

(-)procps-3.2.5/top.c.rc (-1 / +4 lines)
Lines 2393-2399 Link Here
2393
   int i;
2393
   int i;
2394
2394
2395
   for (i = 0; i < GROUPSMAX; i++) {
2395
   for (i = 0; i < GROUPSMAX; i++) {
2396
      win_names(&Winstk[i], Winstk[i].rc.winname);
2396
      /* Please, never use something like sprintf(x, "%s", x); ... see win_names() */
2397
      char buf[WINNAMSIZ];
2398
      strncpy(buf, Winstk[i].rc.winname, WINNAMSIZ);
2399
      win_names(&Winstk[i], buf);
2397
      capsmk(&Winstk[i]);
2400
      capsmk(&Winstk[i]);
2398
   }
2401
   }
2399
   // rely on this next guy to force a call (eventually) to reframewins
2402
   // rely on this next guy to force a call (eventually) to reframewins

Return to bug 279819