diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-12-24 12:11:57 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-12-24 12:11:57 +0000 |
commit | ef36c04ccfbb8fa22f7262d8db392c032a297c83 (patch) | |
tree | 9a7d6268367587a63b433656a92f59bdde31decb | |
parent | f882f086278038b7978a75ed33308b9033411ae8 (diff) | |
download | busybox-w32-ef36c04ccfbb8fa22f7262d8db392c032a297c83.tar.gz busybox-w32-ef36c04ccfbb8fa22f7262d8db392c032a297c83.tar.bz2 busybox-w32-ef36c04ccfbb8fa22f7262d8db392c032a297c83.zip |
umount: fix fallout from stack reduction change
-rw-r--r-- | util-linux/umount.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util-linux/umount.c b/util-linux/umount.c index a9d60fc29..2a25c3f52 100644 --- a/util-linux/umount.c +++ b/util-linux/umount.c | |||
@@ -62,7 +62,7 @@ int umount_main(int argc, char **argv) | |||
62 | if (opt & OPT_ALL) | 62 | if (opt & OPT_ALL) |
63 | bb_error_msg_and_die("cannot open %s", bb_path_mtab_file); | 63 | bb_error_msg_and_die("cannot open %s", bb_path_mtab_file); |
64 | } else { | 64 | } else { |
65 | while (getmntent_r(fp, &me, path, sizeof(path))) { | 65 | while (getmntent_r(fp, &me, path, PATH_MAX)) { |
66 | /* Match fstype if passed */ | 66 | /* Match fstype if passed */ |
67 | if (fstype && match_fstype(&me, fstype)) | 67 | if (fstype && match_fstype(&me, fstype)) |
68 | continue; | 68 | continue; |
@@ -89,7 +89,7 @@ int umount_main(int argc, char **argv) | |||
89 | 89 | ||
90 | // Do we already know what to umount this time through the loop? | 90 | // Do we already know what to umount this time through the loop? |
91 | if (m) | 91 | if (m) |
92 | safe_strncpy(path, m->dir, sizeof(path)); | 92 | safe_strncpy(path, m->dir, PATH_MAX); |
93 | // For umount -a, end of mtab means time to exit. | 93 | // For umount -a, end of mtab means time to exit. |
94 | else if (opt & OPT_ALL) | 94 | else if (opt & OPT_ALL) |
95 | break; | 95 | break; |