diff src/unexalpha.c @ 288:e11d67e05968 r21-0b42

Import from CVS: tag r21-0b42
author cvs
date Mon, 13 Aug 2007 10:35:54 +0200
parents c42ec1d1cded
children 9ea74add5d37
line wrap: on
line diff
--- a/src/unexalpha.c	Mon Aug 13 10:35:07 2007 +0200
+++ b/src/unexalpha.c	Mon Aug 13 10:35:54 2007 +0200
@@ -302,7 +302,7 @@
    * Construct new symbol table header
    */
 
-  memcpy (oldptr + nhdr.fhdr.f_symptr, buffer, cbHDRR);
+  memcpy (buffer, oldptr + nhdr.fhdr.f_symptr, cbHDRR);
 
 #define symhdr ((pHDRR)buffer)
   newsyms = nhdr.aout.tsize + nhdr.aout.dsize;
@@ -394,7 +394,7 @@
       if (!strcmp(s,"_edata"))
 	{
 	  found++;
-          memcpy (x, &n_edata, cbEXTR);
+          memcpy (&n_edata, x, cbEXTR);
 	  n_edata.asym.value = Brk;
 	  SEEK (new, newsyms + cbHDRR + i,
 		"seeking to symbol _edata in %s", new_name);
@@ -404,7 +404,7 @@
       else if (!strcmp(s,"_end"))
 	{
 	  found++;
-          memcpy (x, &n_end, cbEXTR);
+          memcpy (&n_end, x, cbEXTR);
 	  n_end.asym.value = Brk;
 	  SEEK (new, newsyms + cbHDRR + i,
 		"seeking to symbol _end in %s", new_name);