Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!brutus.cs.uiuc.edu!ux1.cso.uiuc.edu!midway!oddjob!rfl From: rfl@oddjob.uchicago.edu (Bob Loewenstein) Newsgroups: comp.sys.mac.programmer Subject: Munger Message-ID: <1990Jun29.213933.25965@midway.uchicago.edu> Date: 29 Jun 90 21:39:33 GMT Sender: news@midway.uchicago.edu (News Administrator) Reply-To: rfl@oddjob.UChicago.EDU () Organization: U of Chicago - Astronomy & Astrophysics Lines: 14 I have a problem using the Munger Toolbox utility. I want to set two relocatable buffers, one to receive data, the other to hold a copy. The way I make a copy is to use the Munger routine with an offset of zero, ptr1=NIL, len1<0. I make the call and the second buffer is filled to the correct size, but occasionally the the data in the second buffer doesn't match the data in the first. I notice that when this happens, 4 contiguous bytes have garbage in them (in the copy buffer). The position of the 4 bytes varies within the buffer. This happens infrequently, but does happen. This problem also happens occasionally when I concatenate two buffers. The call looks straightforward. Is there something I have to do first? Am I missing something? Any help would be appreciated.