This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: memmove w/ 1-byte offset




On Tue, Oct 19, 1999 at 03:51:15PM -0500, nathan.zook@amd.com wrote:
> Description: memmove with 1-byte offset produces junk.

That a bug in your program.  Since buffer is allocated on the stack it
contains initially already junk.

Compare the output before and after calling memmove.

Andreas
-- 
 Andreas Jaeger   
  SuSE Labs aj@suse.de	
   private aj@arthur.rhein-neckar.de

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]