Skip to content
Commit 286b63d0 authored by Roel Kluin's avatar Roel Kluin Committed by Roland Dreier
Browse files

IB/ipath: strncpy() doesn't always NUL-terminate



strlcpy() will always null terminate the string.  node_desc is not
guaranteed to be NUL-terminated so just use memcpy().

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent e07cccf4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment