mdev: fix wrong sizeof
Signed-off-by: Javier Viguera <javier.viguera@digi.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
c158601d50
commit
e8758eaf4f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user