home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi.bugs
- Path: sparky!uunet!spool.mu.edu!yale.edu!ira.uka.de!math.fu-berlin.de!umn.edu!noc.msc.net!uc.msc.edu!uf.msc.edu!wes
- From: wes@uf.msc.edu (Wes Barris)
- Subject: Bug in ipastelrw.c
- Message-ID: <1993Jan11.184050.12843@uc.msc.edu>
- Sender: netnews@uc.msc.edu (UC Network News)
- Reply-To: wes@msc.edu
- Organization: AHPCRC, Minnesota Supercomputer Center
- Date: Mon, 11 Jan 1993 18:40:50 GMT
- Lines: 18
-
- The following lines are found in
- /usr/people/4Dgifts/iristools/imgtools/ipaste.lrw.c
-
- /* allocate the memory for the pixel data to be then fed to lrectwrite */
- imgbuf = (unsigned long *) malloc(xsize*ysize*sizeof(long));
- imgbuf = (unsigned long *) longimagedata(argv[1]);
-
- However, in /usr/people/4Dgifts/iristools/libgutil/imgread.c the imgbuf
- is malloced for you.
-
- base = (long *)malloc(image->xsize*image->ysize*sizeof(long));
-
- As a result, the malloc line in ipastelrw.c is not necessary and should
- be removed.
-
- ===============================================================================
- Wes Barris PH: (612) 626-8090
- Minnesota Supercomputer Center, Inc. Email: wes@msc.edu
-