forked from Imagelibrary/binutils-gdb
* 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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user