summaryrefslogtreecommitdiff
path: root/package/busybox/busybox-1.19.3/busybox-1.19.3-mdev.patch
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2012-01-30 14:44:06 +0100
committerPeter Korsgaard <jacmet@sunsite.dk>2012-01-30 14:44:06 +0100
commit0e80ba177970516e74e280f8091c12d22261380c (patch)
tree3dc3898b20f4b97df3b240b8094b34041abb3d98 /package/busybox/busybox-1.19.3/busybox-1.19.3-mdev.patch
parenta52db793e944d61947042eac6dc686577e82bd47 (diff)
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>
Diffstat (limited to 'package/busybox/busybox-1.19.3/busybox-1.19.3-mdev.patch')
-rw-r--r--package/busybox/busybox-1.19.3/busybox-1.19.3-mdev.patch11
1 files changed, 11 insertions, 0 deletions
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
index 000000000..653ac35c5
--- /dev/null
+++ b/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;