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-4629 libcfs: fix buffer overflow of string buffer
[fs/lustre-release.git]
/
lustre
/
utils
/
libiam.c
diff --git
a/lustre/utils/libiam.c
b/lustre/utils/libiam.c
index
9b64c61
..
704601e
100644
(file)
--- a/
lustre/utils/libiam.c
+++ b/
lustre/utils/libiam.c
@@
-348,7
+348,7
@@
static char *iam_convert(int size, int need_convert, char *source)
free(opt);
}
} else {
-
strn
cpy(ptr, source, size + 1);
+
strl
cpy(ptr, source, size + 1);
}
return ptr;