diff options
Diffstat (limited to 'contrib/umountd')
-rw-r--r-- | contrib/umountd/umountd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/umountd/umountd.c b/contrib/umountd/umountd.c index c06dd54db6e..6b9e3c43031 100644 --- a/contrib/umountd/umountd.c +++ b/contrib/umountd/umountd.c @@ -66,7 +66,7 @@ sanity_check (char *path, dev_t *devp) if (*devp == -1 && ret == 0) *devp = st.st_dev; - strncpy (pathtmp, path, PATH_MAX); + snprintf (pathtmp, PATH_MAX, "%s", path); parent = dirname (pathtmp); if (stat (parent, &parent_st) != 0) { |