Date: Sat, 17 Jul 2021 19:15:42 GMT From: Gleb Popov <arrowd@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: ac0196bd100f - main - sysutils/monitord: Remove erroneous patch hunk. Message-ID: <202107171915.16HJFgA2022967@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by arrowd: URL: https://cgit.FreeBSD.org/ports/commit/?id=ac0196bd100f10bdd5dac59e36eac44482838d36 commit ac0196bd100f10bdd5dac59e36eac44482838d36 Author: Gleb Popov <arrowd@FreeBSD.org> AuthorDate: 2021-07-17 19:13:24 +0000 Commit: Gleb Popov <arrowd@FreeBSD.org> CommitDate: 2021-07-17 19:15:39 +0000 sysutils/monitord: Remove erroneous patch hunk. It is sizeof(array) that was intended here. Reported by: Peter TKATCHENKO <peter@flytrace.com> --- sysutils/monitord/Makefile | 2 +- sysutils/monitord/files/patch-monitord.c | 11 ----------- 2 files changed, 1 insertion(+), 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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107171915.16HJFgA2022967>