git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e07cccf
)
IB/ipath: strncpy() doesn't always NUL-terminate
author
Roel Kluin
<roel.kluin@gmail.com>
Sun, 6 Sep 2009 03:23:21 +0000
(20:23 -0700)
committer
Roland Dreier
<rolandd@cisco.com>
Sun, 6 Sep 2009 03:23:21 +0000
(20:23 -0700)
strlcpy() will always null terminate the string. node_desc is not
guaranteed to be NUL-terminated so just use memcpy().
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
No differences found