* read.c (read_a_source_file): Use correct arguments to memcpy
authorIan Lance Taylor <ian@airs.com>
Mon, 21 Feb 1994 19:44:01 +0000 (19:44 +0000)
committerIan Lance Taylor <ian@airs.com>
Mon, 21 Feb 1994 19:44:01 +0000 (19:44 +0000)
(broken 19 Jul 1993).  From kjd@pescadero.stanford.edu (Kenneth
Duda).

gas/ChangeLog
gas/read.c

index d86884e3ffad7c19a4d1eb2effafd5ae0064e639..eeef52d517d987e8a7258ae6a410280889296031 100644 (file)
@@ -1,3 +1,9 @@
+Mon Feb 21 11:41:18 1994  Ian Lance Taylor  (ian@cygnus.com)
+
+       * read.c (read_a_source_file): Use correct arguments to memcpy
+       (broken 19 Jul 1993).  From kjd@pescadero.stanford.edu (Kenneth
+       Duda).
+
 Sun Feb 20 18:01:54 1994  Ian Lance Taylor  (ian@lisa.cygnus.com)
 
        * config/obj-coff.h (obj_coff_section): Declare.
index 8b294fb0e8dc7a756c5ed28c1334d065cbe9238b..3390f46b04776c59730c043a244d30dd5a9a9438 100644 (file)
@@ -633,7 +633,7 @@ read_a_source_file (name)
                        num = buffer_limit - buffer;
 
                      tmp_buf = xrealloc (tmp_buf, tmp_len + num);
-                     memcpy (tmp_buf, buffer + tmp_len, num);
+                     memcpy (tmp_buf + tmp_len, buffer, num);
                      tmp_len += num;
                    }
                  while (!ends);