File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -465,7 +465,7 @@ dbuf_find_dirty_eq(dmu_buf_impl_t *db, uint64_t txg)
465
465
char __db_buf[32]; \
466
466
uint64_t __db_obj = (dbuf)->db.db_object; \
467
467
if (__db_obj == DMU_META_DNODE_OBJECT) \
468
- (void) strcpy (__db_buf, "mdn"); \
468
+ (void) strlcpy (__db_buf, "mdn", sizeof (__db_buf)); \
469
469
else \
470
470
(void) snprintf(__db_buf, sizeof (__db_buf), "%lld", \
471
471
(u_longlong_t)__db_obj); \
Original file line number Diff line number Diff line change @@ -600,7 +600,7 @@ extern dnode_stats_t dnode_stats;
600
600
char __db_buf[32]; \
601
601
uint64_t __db_obj = (dn)->dn_object; \
602
602
if (__db_obj == DMU_META_DNODE_OBJECT) \
603
- (void) strcpy (__db_buf, "mdn"); \
603
+ (void) strlcpy (__db_buf, "mdn", sizeof (__db_buf)); \
604
604
else \
605
605
(void) snprintf(__db_buf, sizeof (__db_buf), "%lld", \
606
606
(u_longlong_t)__db_obj);\
You can’t perform that action at this time.
0 commit comments