From owner-freebsd-ports Sun Mar 24 23:40:14 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 4D2A637B405 for ; Sun, 24 Mar 2002 23:40:03 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g2P7e3L61240; Sun, 24 Mar 2002 23:40:03 -0800 (PST) (envelope-from gnats) Date: Sun, 24 Mar 2002 23:40:03 -0800 (PST) Message-Id: <200203250740.g2P7e3L61240@freefall.freebsd.org> To: freebsd-ports@FreeBSD.org Cc: From: John Merryweather Cooper Subject: Re: ports/36277: [MAINTAINER UPDATE] Update www/plugger to plugger-4.0 Reply-To: John Merryweather Cooper Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR ports/36277; it has been noted by GNATS. From: John Merryweather Cooper To: "FreeBSD-gnats-submit@freebsd.org" Cc: Subject: Re: ports/36277: [MAINTAINER UPDATE] Update www/plugger to plugger-4.0 Date: 24 Mar 2002 23:31:58 -0800 --=-piIMQ5GyQfnNxE6LyrJa Content-Type: text/plain Content-Transfer-Encoding: 7bit Minor "OOPS" in patch-plugger-helper.c: things will run o.k. (most of the time), but the length parameter is off for two of the snprintf() calls. See attached, updated patch-plugger-helper.c for the correct version. -- _ | |V| / ' || MacroHard -- \ \_| | | \_, || the perfection of form over | ----------------------------------|| substance, marketing over | Web: http://www.borgsdemons.com || performance, and greed over | AIM: johnmcooper || design . . . | =====================================================================/ Public Key: http://www.borgsdemons.com/Personal/pgpkey.asc | =====================================================================\ --=-piIMQ5GyQfnNxE6LyrJa Content-Disposition: attachment; filename=patch-plugger-helper.c Content-Transfer-Encoding: quoted-printable Content-Type: text/x-c; charset=ISO-8859-1 --- plugger-helper.c.orig Sun Dec 9 22:41:11 2001 +++ plugger-helper.c Sun Mar 24 23:29:20 2002 @@ -30,6 +30,7 @@ #include #include #include +#include #include #include #include @@ -355,10 +356,10 @@ /* Time to steal the lock! */ mode=3DPropModeReplace; gettimeofday(&tv, 0); - INC_TIME(&tv, 0, 10000 + (rand() & 16383)); + INC_TIME(&tv, 0, 10000 + (random() & 16383)); break; } - my_usleep((rand() & 16383) + 2000); /* 0.18383 seconds */ + my_usleep((random() & 16383) + 2000); /* 0.18383 seconds */ } =20 D("XChangeProperty, mode=3D%d\n",mode); @@ -401,6 +402,7 @@ got_sigwinch=3D1; } =20 +#define LONG_CHARS 12 =20 int main(int argc, char **argv) { @@ -493,30 +495,30 @@ loops=3DMIN(repeats,10); for(e=3D0;e