diff options
author | Gleb Popov <arrowd@FreeBSD.org> | 2021-07-17 19:13:24 +0000 |
---|---|---|
committer | Gleb Popov <arrowd@FreeBSD.org> | 2021-07-17 19:15:39 +0000 |
commit | ac0196bd100f10bdd5dac59e36eac44482838d36 (patch) | |
tree | 02de0c9fb0c41a6b96b9d93f6de4437da52a8454 /sysutils/monitord | |
parent | 71441da9eade04be8029589cb56faa8805a87df7 (diff) | |
download | ports-ac0196bd100f10bdd5dac59e36eac44482838d36.tar.gz ports-ac0196bd100f10bdd5dac59e36eac44482838d36.zip |
Diffstat (limited to 'sysutils/monitord')
-rw-r--r-- | sysutils/monitord/Makefile | 2 | ||||
-rw-r--r-- | sysutils/monitord/files/patch-monitord.c | 11 |
2 files changed, 1 insertions, 12 deletions
diff --git a/sysutils/monitord/Makefile b/sysutils/monitord/Makefile index 7f4a45d21ebc..c3e1d8a579b2 100644 --- a/sysutils/monitord/Makefile +++ b/sysutils/monitord/Makefile @@ -2,7 +2,7 @@ PORTNAME= monitord PORTVERSION= 0.4.1 -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= sysutils MASTER_SITES= http://lissyara.su/distfiles/ diff --git a/sysutils/monitord/files/patch-monitord.c b/sysutils/monitord/files/patch-monitord.c index e89f516c7ad9..0aa43953a66e 100644 --- a/sysutils/monitord/files/patch-monitord.c +++ b/sysutils/monitord/files/patch-monitord.c @@ -73,17 +73,6 @@ // Main loop while(1) { -@@ -290,8 +294,8 @@ int loop ( char **file, char *filename, int max_proc, - - bzero (param, sizeof(param)); - while ((token = strtok(NULL, " \t"))) { -- strncat (param, " ", sizeof(param)); -- strncat (param, token, sizeof(param)); -+ strncat (param, " ", sizeof(*param)); -+ strncat (param, token, sizeof(*param)); - } - - /* Each line has a \n at the end which must be removed @@ -355,18 +359,18 @@ int loop ( char **file, char *filename, int max_proc, // printf("Couldn't open %s\n", buf); } |