From 4828cdbaca53a42a3172e473b33b509b11edee8c Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Thu, 31 Aug 1995 11:10:32 +0000 Subject: [PATCH] * dlltool.c (run): Add missing 3rd arg to waitpid. --- binutils/ChangeLog | 4 ++++ binutils/dlltool.c | 20 +++++++++----------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 7f009c668bd..a88bacdc4f2 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +Thu Aug 31 04:09:16 1995 Doug Evans + + * dlltool.c (run): Add missing 3rd arg to waitpid. + Wed Aug 30 11:02:11 1995 steve chamberlain * Makefile.in (TOOL_PROGS): Include dlltool if needed. diff --git a/binutils/dlltool.c b/binutils/dlltool.c index 9ea319d3c67..7b2e36daecf 100644 --- a/binutils/dlltool.c +++ b/binutils/dlltool.c @@ -532,7 +532,7 @@ run (what, args) else { int status; - waitpid (pid, &status); + waitpid (pid, &status, 0); if (status) { if (WIFSIGNALED (status)) @@ -708,10 +708,9 @@ flush_page (f, need, page_addr, on_page) { int i; /* Flush this page */ - fprintf (f, "\t%s0x%08x%s\t%s Starting RVA for chunk\n", - ASM_RVA_BEFORE, + fprintf (f, "\t%s\t0x%08x\t%s Starting RVA for chunk\n", + ASM_LONG, page_addr, - ASM_RVA_AFTER, ASM_C); fprintf (f, "\t%s\t0x%x\t%s Size of block\n", ASM_LONG, @@ -1363,12 +1362,12 @@ workout_prefix () ranlib_name = xmalloc (len + strlen ("ranlib")+1); as_name = xmalloc (len + strlen ("as")+1); - strncpy (ar_name, program_name, len); - strcat (ar_name, "ar"); - strncpy (ranlib_name, program_name, len); - strcat (ranlib_name, "ranlib"); - strncpy (as_name, program_name, len); - strcat (as_name, "as"); + memcpy (ar_name, program_name, len); + strcpy (ar_name + len, "ar"); + memcpy (ranlib_name, program_name, len); + strcpy (ranlib_name + len, "ranlib"); + memcpy (as_name, program_name, len); + strcpy (as_name + len, "as"); } } } @@ -1526,4 +1525,3 @@ main (ac, av) return 0; } - -- 2.30.2