diff options
author | Chris McDonough <[email protected]> | 2020-08-24 13:32:59 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2020-08-24 10:32:59 -0700 |
commit | c3b03d0701d8b82d60784e729ece9cb2f650eb87 (patch) | |
tree | f35fb2ffd8a9422e2cf73172323f16dd8fe01f13 /include | |
parent | b0e75805eefcb09186010afc8d27748e60f80329 (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 'include')
-rw-r--r-- | include/sys/ddt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sys/ddt.h b/include/sys/ddt.h index 4fba49c75..25be6f56d 100644 --- a/include/sys/ddt.h +++ b/include/sys/ddt.h @@ -179,7 +179,7 @@ typedef struct ddt_ops { int (*ddt_op_count)(objset_t *os, uint64_t object, uint64_t *count); } ddt_ops_t; -#define DDT_NAMELEN 102 +#define DDT_NAMELEN 107 extern void ddt_object_name(ddt_t *ddt, enum ddt_type type, enum ddt_class clazz, char *name); |