diff options
author | candychencan <[email protected]> | 2016-09-21 02:27:15 +0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-09-20 11:27:15 -0700 |
commit | d2a6f65cfb65ec3079f843542a156704264260be (patch) | |
tree | 1d86e553f6984c3e2642dfc08ca35b4ac9c2540b /cmd/zinject/translate.c | |
parent | 792517389fad5c495a2738b61c2e9c65dedaaa9a (diff) |
Fix strncpy in taskq_create
Assign the copy length to TASKQ_NAMELEN, so if the name length equals
'TASKQ_NAMELEN+1' , the final '\0' of tq->tq_name is preserved.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: candychencan <[email protected]>
Closes #5136
Diffstat (limited to 'cmd/zinject/translate.c')
0 files changed, 0 insertions, 0 deletions