summaryrefslogtreecommitdiff
path: root/gcc/fix-header.c
diff options
context:
space:
mode:
authorbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>1993-07-27 20:55:12 +0000
committerbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>1993-07-27 20:55:12 +0000
commit3507a1e695a15d28ab2c1d8849f00a11ff6661a9 (patch)
treeadb511619b685e960b04d5b620b379d564a6a7cc /gcc/fix-header.c
parent6c40ed28509d7cc9815590f1fed55a9be1d8bffa (diff)
downloadgcc-3507a1e695a15d28ab2c1d8849f00a11ff6661a9.tar.gz
* patch-header.c (read_scan_file): Minor re-write to avoid
obstack_copy0, since that uses the non-portable bcopy(). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5007 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fix-header.c')
-rw-r--r--gcc/fix-header.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/fix-header.c b/gcc/fix-header.c
index 4d3dfefb549..85f90c7e9be 100644
--- a/gcc/fix-header.c
+++ b/gcc/fix-header.c
@@ -306,10 +306,10 @@ read_scan_file (scan_file)
partial_count++;
partial = (struct partial_proto*)
obstack_alloc (&scan_file_obstack, sizeof(struct partial_proto));
- partial->fname
- = obstack_copy0 (&scan_file_obstack, fname, strlen (fname));
- partial->rtype
- = obstack_copy0 (&scan_file_obstack, rtype, strlen (rtype));
+ partial->fname = obstack_alloc (&scan_file_obstack, strlen(fname) + 1);
+ strcpy (partial->fname, fname);
+ partial->rtype = obstack_alloc (&scan_file_obstack, strlen(rtype) + 1);
+ strcpy (partial->rtype, rtype);
partial->line_seen = atoi(line_seen);
partial->fn = fn;
fn->partial = partial;