Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Viguera <javier.viguera@digi.com>2012-01-27 21:30:20 +0400
committerDenys Vlasenko <vda.linux@googlemail.com>2012-01-30 05:15:13 +0400
commite8758eaf4f994f679142563623713f62d87a74a3 (patch)
tree6745d080721528f66548fd3f1c88f0bf9cb88659 /util-linux
parentc158601d50c2fab56ed0043989ba83fa9cd7f96a (diff)
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 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;