[git commit] mdev: fix wrong sizeof
Denys Vlasenko
vda.linux at googlemail.com
Mon Jan 30 01:15:13 UTC 2012
commit: http://git.busybox.net/busybox/commit/?id=e8758eaf4f994f679142563623713f62d87a74a3
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Javier Viguera <javier.viguera at digi.com>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
util-linux/mdev.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/util-linux/mdev.c b/util-linux/mdev.c
index e5f0c2d..9765688 100644
--- a/util-linux/mdev.c
+++ b/util-linux/mdev.c
@@ -783,7 +783,7 @@ int mdev_main(int argc UNUSED_PARAM, char **argv)
int seqlen;
char seqbuf[sizeof(int)*3 + 2];
- seqlen = open_read_close("mdev.seq", seqbuf, sizeof(seqbuf-1));
+ seqlen = open_read_close("mdev.seq", seqbuf, sizeof(seqbuf) - 1);
if (seqlen < 0) {
seq = NULL;
break;
More information about the busybox-cvs
mailing list