Message-ID: <35C85EA7.1B8C6A2C@lu.erisoft.se> Date: Wed, 05 Aug 1998 15:31:20 +0200 From: Patrik Fors Organization: Ericsson Erisoft AB X-Mailer: Mozilla 4.5b1 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: ns-users@mash.CS.Berkeley.EDU Subject: xgraph bug Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I found a small bug/typo in xgraph. It's mentioned on the 'Installation Problems, Bug Fixes, and Help' page but I couldnt find any fix there. Anyway, xgraph crashed on examples/surface* in derivative.c.. ..and the bug/typo was found on line #96 (in derivative.c) 92 if (theList) { 93 D1List->next = (PointList *)malloc(sizeof(PointList)); 94 D2List->next = (PointList *)malloc(sizeof(PointList)); 95 D1List = D1List->next; 96 D2List = D1List->next; should (of course) be 92 if (theList) { 93 D1List->next = (PointList *)malloc(sizeof(PointList)); 94 D2List->next = (PointList *)malloc(sizeof(PointList)); 95 D1List = D1List->next; 96 D2List = D2List->next; Patrik Fors. --- derivative.c-pre-patrik-fors Wed Aug 5 14:26:53 1998 +++ derivative.c Wed Aug 5 14:26:55 1998 @@ -92,7 +92,7 @@ D1List->next = (PointList *)malloc(sizeof(PointList)); D2List->next = (PointList *)malloc(sizeof(PointList)); D1List = D1List->next; - D2List = D1List->next; + D2List = D2List->next; } } } .