diff options
author | Javier Viguera | 2012-01-27 18:30:20 +0100 |
---|---|---|
committer | Denys Vlasenko | 2012-01-30 02:15:13 +0100 |
commit | e8758eaf4f994f679142563623713f62d87a74a3 (patch) | |
tree | 6745d080721528f66548fd3f1c88f0bf9cb88659 | |
parent | c158601d50c2fab56ed0043989ba83fa9cd7f96a (diff) | |
download | busybox-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>
-rw-r--r-- | 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; |