瀏覽代碼

busybox: add 1.19.3 mdev fix

For details, see
http://lists.busybox.net/pipermail/busybox/2012-January/077236.html

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Peter Korsgaard 13 年之前
父節點
當前提交
0e80ba1779
共有 1 個文件被更改,包括 11 次插入0 次删除
  1. 11 0
      package/busybox/busybox-1.19.3/busybox-1.19.3-mdev.patch

+ 11 - 0
package/busybox/busybox-1.19.3/busybox-1.19.3-mdev.patch

@@ -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;