Silence an OpenBSD linker warning
Alpine 3.19 Success
Details
Alpine 3.19 Success
Details
This commit is contained in:
parent
f04cc2c61e
commit
8386af0420
|
@ -292,7 +292,8 @@ xreallocarray (void *o, size_t n, size_t m)
|
||||||
static char *
|
static char *
|
||||||
xstrdup (const char *s)
|
xstrdup (const char *s)
|
||||||
{
|
{
|
||||||
return strcpy (xmalloc (strlen (s) + 1), s);
|
size_t len = strlen (s) + 1;
|
||||||
|
return memcpy (xmalloc (len), s, len);
|
||||||
}
|
}
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
|
|
Loading…
Reference in New Issue