summaryrefslogtreecommitdiff
path: root/package/busybox/busybox-1.19.3/busybox-1.19.3-mdev.patch
blob: 653ac35c50eca5a1fd8166b16b6763115dc3ab47 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- busybox-1.19.3/util-linux/mdev.c
+++ busybox-1.19.3-mdev/util-linux/mdev.c
@@ -610,7 +610,7 @@ int mdev_main(int argc UNUSED_PARAM, cha
 				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;