Thread View: comp.sys.sgi.bugs
1 messages
1 total messages
Started by Wes Barris
Mon, 11 Jan 1993 18:40
Bug in ipastelrw.c
Author: Wes Barris
Date: Mon, 11 Jan 1993 18:40
Date: Mon, 11 Jan 1993 18:40
18 lines
1220 bytes
1220 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads