Updated with Tizen:Base source codes
[external/procps.git] / packaging / procps-3.2.5-top-rc.patch
1 --- procps-3.2.5/top.c.rc       2005-06-28 22:36:24.000000000 +0200
2 +++ procps-3.2.5/top.c  2005-06-28 22:40:27.000000000 +0200
3 @@ -2393,7 +2393,10 @@
4     int i;
5  
6     for (i = 0; i < GROUPSMAX; i++) {
7 -      win_names(&Winstk[i], Winstk[i].rc.winname);
8 +      /* Please, never use something like sprintf(x, "%s", x); ... see win_names() */
9 +      char buf[WINNAMSIZ];
10 +      strncpy(buf, Winstk[i].rc.winname, WINNAMSIZ);
11 +      win_names(&Winstk[i], buf);
12        capsmk(&Winstk[i]);
13     }
14     // rely on this next guy to force a call (eventually) to reframewins