aboutsummaryrefslogtreecommitdiffstats
path: root/include/sys/dnode.h
diff options
context:
space:
mode:
authorJorgen Lundman <[email protected]>2021-07-08 12:13:40 +0900
committerGitHub <[email protected]>2021-07-07 21:13:40 -0600
commit03dba7ae318e10184a6d5e8327e3005a3ad17eb0 (patch)
treee0b71b0089dd35c5aa0b949ca111c9e467d49fdd /include/sys/dnode.h
parentd2119d0e6f411be5418f88fdb9b64e5c7b808fce (diff)
dprintf_dnode: strcpy -> strlcpy
Missed a couple of strcpy() in earlier commit, this is only used with --enable-debug. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Tony Nguyen <[email protected]> Signed-off-by: Jorgen Lundman <[email protected]> Closes #12311
Diffstat (limited to 'include/sys/dnode.h')
-rw-r--r--include/sys/dnode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sys/dnode.h b/include/sys/dnode.h
index de6492bb7..2cdc5b879 100644
--- a/include/sys/dnode.h
+++ b/include/sys/dnode.h
@@ -600,7 +600,7 @@ extern dnode_stats_t dnode_stats;
char __db_buf[32]; \
uint64_t __db_obj = (dn)->dn_object; \
if (__db_obj == DMU_META_DNODE_OBJECT) \
- (void) strcpy(__db_buf, "mdn"); \
+ (void) strlcpy(__db_buf, "mdn", sizeof (__db_buf)); \
else \
(void) snprintf(__db_buf, sizeof (__db_buf), "%lld", \
(u_longlong_t)__db_obj);\