It is just wrapper around strlcpy(), but results in more complicated
code. Clean this up to use strlcpy() or snprintf() as appropriate.
Details
Details
- Reviewers
jkoshy gnn - Group Reviewers
pmc - Commits
- rG67239b0a33b2: hwpmc: don't use deprecated copystr(9)
rG31610e34b7e3: hwpmc: don't use deprecated copystr(9)
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 51315 Build 48206: arc lint + arc unit
Event Timeline
sys/dev/hwpmc/hwpmc_amd.c | ||
---|---|---|
919 | How about using sizeof(pi->pm_name) instead of PMC_NAME_MAX? This would remove the need for the reader to check that the pm_name field is at least PMC_NAME_MAX in size. Here and below. |