Details
-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
None
-
Fedora release 28 (Twenty Eight)
gcc (GCC) 8.0.1 20180324 (Red Hat 8.0.1-0.20)
Copyright (C) 2018 Free Software Foundation, Inc.
-
3
-
9223372036854775807
Description
Hit following build failure when trying to build lustre master client:
lfs.c:5571:4: error: ‘strncpy’ specified bound 4096 equals destination size [-Werror=stringop-truncation] strncpy(mntdir, dname, sizeof(mntdir)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lfs_project.c: In function ‘lfs_project_item_alloc’: lfs_project.c:72:2: error: ‘strncpy’ specified bound 4096 equals destination size [-Werror=stringop-truncation] strncpy(lpi->lpi_pathname, pathname, sizeof(lpi->lpi_pathname)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~