diff options
author | Alan Modra <amodra@bigpond.net.au> | 2005-02-22 12:57:27 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2005-02-22 12:57:27 +0000 |
commit | 0fa07a9d775852c070113ccb1f27da3e14ae3cf5 (patch) | |
tree | 1176e8e57a22ed19a81abc9ce4896b1a1f3c2ab6 /binutils/nlmconv.c | |
parent | e9a32c3d0ccc2ceee814eca1c5ee07c4c1289fe5 (diff) | |
download | binutils-redhat-0fa07a9d775852c070113ccb1f27da3e14ae3cf5.tar.gz |
* Makefile.am (syslex.o, sysinfo.o): Pass AM_CFLAGS to compiler.
(syslex.o, sysinfo.o, dlltool.o, rescoff.o): Remove duplicate
dependencies. Run "make dep-am".
* nlmconv.c: Warning fixes.
* readelf.c: Likewise.
* srconv.c: Likewise.
* sysdump.c: Likewise.
* sysinfo.y: Likewise.
* syslex.l: Likewise. Use yyleng instead of strlen, memcpy instead
of strcpy.
* Makefile.in: Regenerate.
Diffstat (limited to 'binutils/nlmconv.c')
-rw-r--r-- | binutils/nlmconv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/binutils/nlmconv.c b/binutils/nlmconv.c index 44593c1212..b7798eba28 100644 --- a/binutils/nlmconv.c +++ b/binutils/nlmconv.c @@ -193,7 +193,7 @@ main (int argc, char **argv) bfd *sharedbfd; size_t shared_offset = 0; size_t shared_size = 0; - Nlm_Internal_Fixed_Header sharedhdr; + static Nlm_Internal_Fixed_Header sharedhdr; int len; char *modname; char **matching; @@ -976,7 +976,7 @@ main (int argc, char **argv) for (l = modules; l != NULL; l = l->next) { *set = strlen (l->string); - strncpy (set + 1, l->string, *set); + strncpy ((char *) set + 1, l->string, *set); set += *set + 1; ++c; } |