Date: Wed, 6 Jun 2001 02:20:02 -0700 (PDT) From: mistral@imasy.or.jp (Yoshihiko SARUMARU) To: freebsd-ports@FreeBSD.org Subject: Re: ports/27848: New port: du2ps - filter for converting output of du to PostScript file Message-ID: <200106060920.f569K2883735@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/27848; it has been noted by GNATS. From: mistral@imasy.or.jp (Yoshihiko SARUMARU) To: freebsd-gnats-submit@FreeBSD.org, mistral@imasy.or.jp Cc: Subject: Re: ports/27848: New port: du2ps - filter for converting output of du to PostScript file Date: Wed, 6 Jun 2001 18:18:11 +0900 I found a bug in this program which I made a ports skelton. Here is an additional patch named patch-ac. Thanks ! # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # sysutils/du2ps/files/patch-ac # echo x - sysutils/du2ps/files/patch-ac sed 's/^X//' >sysutils/du2ps/files/patch-ac << 'END-of-sysutils/du2ps/files/patch-ac' X--- nodeop.c.orig Tue Mar 15 18:15:58 1994 X+++ nodeop.c Wed Jun 6 15:03:28 2001 X@@ -142,7 +142,8 @@ X X /* for each child */ X for(np = nodep->child; NODE_NULL != np; np = np->peer){ X- double height = h * np->size / nodep->size; X+ /* When nodep->size is 0, 'divided by zero' will be raised */ X+ double height = (nodep->size != 0 ? h * np->size / nodep->size : 0); X X drawrect(np, y, height, depth); X END-of-sysutils/du2ps/files/patch-ac exit To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106060920.f569K2883735>