Silence an OpenBSD linker warning
All checks were successful
Alpine 3.19 Success

This commit is contained in:
2024-04-10 17:54:34 +02:00
parent f04cc2c61e
commit 8386af0420

View File

@@ -292,7 +292,8 @@ xreallocarray (void *o, size_t n, size_t m)
static char *
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 *