aboutsummaryrefslogtreecommitdiff
path: root/gas/read.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-02-21 19:44:01 +0000
committerIan Lance Taylor <ian@airs.com>1994-02-21 19:44:01 +0000
commit9eb5f4b8c6f4a29496822d8762dc4e3b46ab152b (patch)
tree1ce02286ca067e80367c5689146c79fc911aeb0f /gas/read.c
parentfdf08b0fff8e8155a6fb9b6bfb9e0bb8c31ec6db (diff)
downloadgdb-9eb5f4b8c6f4a29496822d8762dc4e3b46ab152b.zip
gdb-9eb5f4b8c6f4a29496822d8762dc4e3b46ab152b.tar.gz
gdb-9eb5f4b8c6f4a29496822d8762dc4e3b46ab152b.tar.bz2
* read.c (read_a_source_file): Use correct arguments to memcpy
(broken 19 Jul 1993). From kjd@pescadero.stanford.edu (Kenneth Duda).
Diffstat (limited to 'gas/read.c')
-rw-r--r--gas/read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/read.c b/gas/read.c
index 8b294fb..3390f46 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);