From e8758eaf4f994f679142563623713f62d87a74a3 Mon Sep 17 00:00:00 2001 From: Javier Viguera Date: Fri, 27 Jan 2012 18:30:20 +0100 Subject: mdev: fix wrong sizeof Signed-off-by: Javier Viguera Signed-off-by: Denys Vlasenko --- util-linux/mdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util-linux') 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; -- cgit v1.1