diff options
author | Daniel Lange <DLange@git.local> | 2020-12-07 10:26:01 +0100 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2020-12-07 10:26:01 +0100 |
commit | 65357c8c46154de4e4eca14075bfe5523bb5fc14 (patch) | |
tree | 8f430ee5a0d5de377c4e7c94e47842a27c70d7e8 /SignalsPanel.c | |
parent | f80394a20254938142011855f2954b3f63fe5909 (diff) | |
download | debian_htop-65357c8c46154de4e4eca14075bfe5523bb5fc14.tar.gz debian_htop-65357c8c46154de4e4eca14075bfe5523bb5fc14.tar.bz2 debian_htop-65357c8c46154de4e4eca14075bfe5523bb5fc14.zip |
New upstream version 3.0.3upstream/3.0.3
Diffstat (limited to 'SignalsPanel.c')
-rw-r--r-- | SignalsPanel.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/SignalsPanel.c b/SignalsPanel.c index 8036142..436fc57 100644 --- a/SignalsPanel.c +++ b/SignalsPanel.c @@ -1,22 +1,21 @@ /* htop - SignalsPanel.c (C) 2004-2011 Hisham H. Muhammad -Released under the GNU GPL, see the COPYING file +Released under the GNU GPLv2, see the COPYING file in the source distribution for its full text. */ -#include "Panel.h" #include "SignalsPanel.h" -#include "Platform.h" - -#include "ListItem.h" -#include "RichString.h" -#include <stdlib.h> -#include <assert.h> #include <signal.h> +#include <stdbool.h> -#include <ctype.h> +#include "FunctionBar.h" +#include "ListItem.h" +#include "Object.h" +#include "Panel.h" +#include "Platform.h" +#include "XUtils.h" Panel* SignalsPanel_new() { @@ -36,7 +35,7 @@ Panel* SignalsPanel_new() { static char buf[16]; for (int sig = SIGRTMIN; sig <= SIGRTMAX; i++, sig++) { int n = sig - SIGRTMIN; - xSnprintf(buf, 16, "%2d SIGRTMIN%-+3d", sig, n); + xSnprintf(buf, sizeof(buf), "%2d SIGRTMIN%-+3d", sig, n); if (n == 0) { buf[11] = '\0'; } |