From 9eb5f4b8c6f4a29496822d8762dc4e3b46ab152b Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 21 Feb 1994 19:44:01 +0000 Subject: [PATCH] * read.c (read_a_source_file): Use correct arguments to memcpy (broken 19 Jul 1993). From kjd@pescadero.stanford.edu (Kenneth Duda). --- gas/ChangeLog | 6 ++++++ gas/read.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index d86884e3ffa..eeef52d517d 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -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. diff --git a/gas/read.c b/gas/read.c index 8b294fb0e8d..3390f46b047 100644 --- a/gas/read.c +++ b/gas/read.c @@ -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); -- 2.30.2