home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / sgi / bugs / 102 < prev    next >
Encoding:
Text File  |  1993-01-11  |  1.2 KB  |  30 lines

  1. Newsgroups: comp.sys.sgi.bugs
  2. 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
  3. From: wes@uf.msc.edu (Wes Barris)
  4. Subject: Bug in ipastelrw.c
  5. Message-ID: <1993Jan11.184050.12843@uc.msc.edu>
  6. Sender: netnews@uc.msc.edu (UC Network News)
  7. Reply-To: wes@msc.edu
  8. Organization: AHPCRC, Minnesota Supercomputer Center
  9. Date: Mon, 11 Jan 1993 18:40:50 GMT
  10. Lines: 18
  11.  
  12. The following lines are found in
  13. /usr/people/4Dgifts/iristools/imgtools/ipaste.lrw.c
  14.  
  15. /* allocate the memory for the pixel data to be then fed to lrectwrite */
  16.     imgbuf = (unsigned long *) malloc(xsize*ysize*sizeof(long));
  17.     imgbuf = (unsigned long *) longimagedata(argv[1]);
  18.  
  19. However, in /usr/people/4Dgifts/iristools/libgutil/imgread.c the imgbuf
  20. is malloced for you.
  21.  
  22.     base = (long *)malloc(image->xsize*image->ysize*sizeof(long));
  23.  
  24. As a result, the malloc line in ipastelrw.c is not necessary and should
  25. be removed.
  26.  
  27. ===============================================================================
  28. Wes Barris                                                   PH: (612) 626-8090
  29. Minnesota Supercomputer Center, Inc.                         Email: wes@msc.edu
  30.