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-12447 utils: specify correct size for lfs project buffer
[fs/lustre-release.git]
/
lustre
/
utils
/
lfs_project.c
diff --git
a/lustre/utils/lfs_project.c
b/lustre/utils/lfs_project.c
index
55caae5
..
f16d825
100644
(file)
--- a/
lustre/utils/lfs_project.c
+++ b/
lustre/utils/lfs_project.c
@@
-69,7
+69,7
@@
lfs_project_item_alloc(struct list_head *head, const char *pathname)
return -ENOMEM;
}
- strncpy(lpi->lpi_pathname, pathname, sizeof(lpi->lpi_pathname));
+ strncpy(lpi->lpi_pathname, pathname, sizeof(lpi->lpi_pathname)
- 1
);
list_add_tail(&lpi->lpi_list, head);
return 0;