Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-12844 lnet: fix strncpy bound error
[fs/lustre-release.git]
/
lnet
/
utils
/
lnetconfig
/
liblnetconfig.c
diff --git
a/lnet/utils/lnetconfig/liblnetconfig.c
b/lnet/utils/lnetconfig/liblnetconfig.c
index
23612c8
..
5a50b21
100644
(file)
--- a/
lnet/utils/lnetconfig/liblnetconfig.c
+++ b/
lnet/utils/lnetconfig/liblnetconfig.c
@@
-317,7
+317,7
@@
int lustre_lnet_parse_nids(char *nids, char **array, int size,
finish = i > 0 ? i - 1: 0;
goto failed;
}
-
strn
cpy(entry, cur, len - 1);
+
mem
cpy(entry, cur, len - 1);
entry[len] = '\0';
new_array[i] = entry;
if (comma) {