busybox: add 1.19.3 mdev fix
authorPeter Korsgaard <jacmet@sunsite.dk>
Mon, 30 Jan 2012 13:44:06 +0000 (14:44 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Mon, 30 Jan 2012 13:44:06 +0000 (14:44 +0100)
For details, see
http://lists.busybox.net/pipermail/busybox/2012-January/077236.html

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/busybox/busybox-1.19.3/busybox-1.19.3-mdev.patch [new file with mode: 0644]

diff --git a/package/busybox/busybox-1.19.3/busybox-1.19.3-mdev.patch b/package/busybox/busybox-1.19.3/busybox-1.19.3-mdev.patch
new file mode 100644 (file)
index 0000000..653ac35
--- /dev/null
@@ -0,0 +1,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;