From e8758eaf4f994f679142563623713f62d87a74a3 Mon Sep 17 00:00:00 2001 From: Javier Viguera Date: Fri, 27 Jan 2012 18:30:20 +0100 Subject: [PATCH] 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(-) diff --git a/util-linux/mdev.c b/util-linux/mdev.c index e5f0c2deb..976568814 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; -- 2.25.1