Репозитории ALT
S: | 3.3.17-alt7.g37f1060 |
5.1: | 3.2.7-alt2 |
4.1: | 3.2.5-alt7.M41.1 |
4.0: | 3.2.5-alt7 |
3.0: | 3.2.4-alt2 |
Группа :: Мониторинг
Пакет: procps
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: procps-3.2.5-rh-owl-top-rc.patch
Скачать
Скачать
--- 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,11 @@
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];
+ buf[0] = '\0';
+ strncat(buf, Winstk[i].rc.winname, sizeof(buf)-1);
+ win_names(&Winstk[i], buf);
capsmk(&Winstk[i]);
}
// rely on this next guy to force a call (eventually) to reframewins