aboutsummaryrefslogtreecommitdiff
path: root/binutils/dlltool.c
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>1995-08-31 11:10:32 +0000
committerDavid Edelsohn <dje.gcc@gmail.com>1995-08-31 11:10:32 +0000
commit4828cdbaca53a42a3172e473b33b509b11edee8c (patch)
treec52185a313d90af006c265292fd2737560d7bc2a /binutils/dlltool.c
parent1fc210a78b209c854e0f517fe6ab584ee9d4c43a (diff)
downloadbinutils-4828cdbaca53a42a3172e473b33b509b11edee8c.zip
binutils-4828cdbaca53a42a3172e473b33b509b11edee8c.tar.gz
binutils-4828cdbaca53a42a3172e473b33b509b11edee8c.tar.bz2
* dlltool.c (run): Add missing 3rd arg to waitpid.
Diffstat (limited to 'binutils/dlltool.c')
-rw-r--r--binutils/dlltool.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/binutils/dlltool.c b/binutils/dlltool.c
index 9ea319d..7b2e36d 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;
}
-