summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Viguera <javier.viguera@digi.com>2012-01-27 17:30:20 (GMT)
committer Denys Vlasenko <vda.linux@googlemail.com>2012-01-30 01:15:13 (GMT)
commite8758eaf4f994f679142563623713f62d87a74a3 (patch)
tree6745d080721528f66548fd3f1c88f0bf9cb88659
parentc158601d50c2fab56ed0043989ba83fa9cd7f96a (diff)
downloadbusybox-e8758eaf4f994f679142563623713f62d87a74a3.tar.gz
busybox-e8758eaf4f994f679142563623713f62d87a74a3.tar.bz2
mdev: fix wrong sizeof
Signed-off-by: Javier Viguera <javier.viguera@digi.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--util-linux/mdev.c2
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;