summaryrefslogtreecommitdiffstats
path: root/meta/packages/busybox/busybox-1.15.3/r24785.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/busybox/busybox-1.15.3/r24785.patch')
-rw-r--r--meta/packages/busybox/busybox-1.15.3/r24785.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/meta/packages/busybox/busybox-1.15.3/r24785.patch b/meta/packages/busybox/busybox-1.15.3/r24785.patch
new file mode 100644
index 0000000000..e3e80befcd
--- /dev/null
+++ b/meta/packages/busybox/busybox-1.15.3/r24785.patch
@@ -0,0 +1,14 @@
1--- busybox/util-linux/mdev.c 2009/01/08 17:19:01 24725
2+++ busybox/util-linux/mdev.c 2009/01/12 07:57:52 24785
3@@ -179,8 +179,9 @@
4 unsigned i, n;
5 #endif
6 char *a = val;
7- s = strchr(val, ' ');
8- val = (s && s[1]) ? s+1 : NULL;
9+ s = strchrnul(val, ' ');
10+ val = (s[0] && s[1]) ? s+1 : NULL;
11+ s[0] = '\0';
12 #if ENABLE_FEATURE_MDEV_RENAME_REGEXP
13 /* substitute %1..9 with off[1..9], if any */
14 n = 0;