summaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorJavier Viguera2012-01-27 18:30:20 +0100
committerDenys Vlasenko2012-01-30 02:15:13 +0100
commite8758eaf4f994f679142563623713f62d87a74a3 (patch)
tree6745d080721528f66548fd3f1c88f0bf9cb88659 /util-linux
parentc158601d50c2fab56ed0043989ba83fa9cd7f96a (diff)
downloadbusybox-e8758eaf4f994f679142563623713f62d87a74a3.zip
busybox-e8758eaf4f994f679142563623713f62d87a74a3.tar.gz
mdev: fix wrong sizeof
Signed-off-by: Javier Viguera <javier.viguera@digi.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux')
-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;