aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris McDonough <[email protected]>2020-08-24 13:32:59 -0400
committerGitHub <[email protected]>2020-08-24 10:32:59 -0700
commitc3b03d0701d8b82d60784e729ece9cb2f650eb87 (patch)
treef35fb2ffd8a9422e2cf73172323f16dd8fe01f13 /lib
parentb0e75805eefcb09186010afc8d27748e60f80329 (diff)
Appease GCC sprintf warnings found on Fedora 32/GCC 10.0.1
Increase the size of DDT_NAMELEN and MNT_LINE_MAX to appease GCC snprintf truncation warnings. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Chris McDonough <[email protected]> Closes #10712 Closes #10766
Diffstat (limited to 'lib')
-rw-r--r--lib/libspl/include/os/freebsd/sys/mnttab.h2
-rw-r--r--lib/libspl/include/os/linux/sys/mnttab.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/libspl/include/os/freebsd/sys/mnttab.h b/lib/libspl/include/os/freebsd/sys/mnttab.h
index eb6ea2433..c08349bdf 100644
--- a/lib/libspl/include/os/freebsd/sys/mnttab.h
+++ b/lib/libspl/include/os/freebsd/sys/mnttab.h
@@ -43,7 +43,7 @@
#define MS_NOMNTTAB 0x0
#define MS_RDONLY 0x1
#define umount2(p, f) unmount(p, f)
-#define MNT_LINE_MAX 4096
+#define MNT_LINE_MAX 4108
#define MNT_TOOLONG 1 /* entry exceeds MNT_LINE_MAX */
#define MNT_TOOMANY 2 /* too many fields in line */
diff --git a/lib/libspl/include/os/linux/sys/mnttab.h b/lib/libspl/include/os/linux/sys/mnttab.h
index 093218d68..1957293d5 100644
--- a/lib/libspl/include/os/linux/sys/mnttab.h
+++ b/lib/libspl/include/os/linux/sys/mnttab.h
@@ -40,7 +40,7 @@
#endif /* MNTTAB */
#define MNTTAB "/proc/self/mounts"
-#define MNT_LINE_MAX 4096
+#define MNT_LINE_MAX 4108
#define MNT_TOOLONG 1 /* entry exceeds MNT_LINE_MAX */
#define MNT_TOOMANY 2 /* too many fields in line */