summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko2007-12-24 12:11:57 +0000
committerDenis Vlasenko2007-12-24 12:11:57 +0000
commitef36c04ccfbb8fa22f7262d8db392c032a297c83 (patch)
tree9a7d6268367587a63b433656a92f59bdde31decb
parentf882f086278038b7978a75ed33308b9033411ae8 (diff)
downloadbusybox-ef36c04ccfbb8fa22f7262d8db392c032a297c83.zip
busybox-ef36c04ccfbb8fa22f7262d8db392c032a297c83.tar.gz
umount: fix fallout from stack reduction change
-rw-r--r--util-linux/umount.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util-linux/umount.c b/util-linux/umount.c
index a9d60fc..2a25c3f 100644
--- a/util-linux/umount.c
+++ b/util-linux/umount.c
@@ -62,7 +62,7 @@ int umount_main(int argc, char **argv)
if (opt & OPT_ALL)
bb_error_msg_and_die("cannot open %s", bb_path_mtab_file);
} else {
- while (getmntent_r(fp, &me, path, sizeof(path))) {
+ while (getmntent_r(fp, &me, path, PATH_MAX)) {
/* Match fstype if passed */
if (fstype && match_fstype(&me, fstype))
continue;
@@ -89,7 +89,7 @@ int umount_main(int argc, char **argv)
// Do we already know what to umount this time through the loop?
if (m)
- safe_strncpy(path, m->dir, sizeof(path));
+ safe_strncpy(path, m->dir, PATH_MAX);
// For umount -a, end of mtab means time to exit.
else if (opt & OPT_ALL)
break;