mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
Fedora 28: Fix misc bounds check compiler warnings
Fix a bunch of (mostly) sprintf/snprintf truncation compiler warnings that show up on Fedora 28 (GCC 8.0.1). Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Tony Hutter <hutter2@llnl.gov> Closes #7361 Closes #7368
This commit is contained in:
@@ -146,7 +146,7 @@ umem_cache_create(
|
||||
|
||||
cp = umem_alloc(sizeof (umem_cache_t), UMEM_DEFAULT);
|
||||
if (cp) {
|
||||
strncpy(cp->cache_name, name, UMEM_CACHE_NAMELEN);
|
||||
strlcpy(cp->cache_name, name, UMEM_CACHE_NAMELEN);
|
||||
cp->cache_bufsize = bufsize;
|
||||
cp->cache_align = align;
|
||||
cp->cache_constructor = constructor;
|
||||
|
||||
Reference in New Issue
Block a user