mirror of
https://git.busybox.net/busybox.git
synced 2024-12-13 23:43:26 +08:00
Bug spotted by Kumar Gala. Hopefully this fixes it...
This commit is contained in:
parent
07a637df47
commit
20fef96dd8
@ -475,8 +475,9 @@ int mount_main(int argc, char **argv)
|
||||
|
||||
// Get next fstab entry
|
||||
|
||||
if (!getmntent_r(fstab, mtcur, bb_common_bufsiz1,
|
||||
sizeof(bb_common_bufsiz1)))
|
||||
if (!getmntent_r(fstab, mtcur, bb_common_bufsiz1
|
||||
+ (mtcur==mtpair ? sizeof(bb_common_bufsiz1)/2 : 0),
|
||||
sizeof(bb_common_bufsiz1)/2))
|
||||
{
|
||||
// Were we looking for something specific?
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user