summaryrefslogtreecommitdiff
path: root/recipes/busybox/busybox-1.14.3/r24785.patch
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@datenfreihafen.org>2009-08-08 10:08:45 +0200
committerStefan Schmidt <stefan@datenfreihafen.org>2009-08-08 10:08:45 +0200
commitf77a615dee76f1c6d560b69ec8c1a245bd46f39c (patch)
tree8db0ff94871600fd03606f3cd41bd49a9b2d2bf8 /recipes/busybox/busybox-1.14.3/r24785.patch
parent076d31f2981d51b093d86b0751121fe1e10669b1 (diff)
parenta702c1ad0559dd6712857e2e9a8ee82513814569 (diff)
Merge branch 'org.openembedded.dev' of git@git.openembedded.org:openembedded into org.openembedded.dev
Diffstat (limited to 'recipes/busybox/busybox-1.14.3/r24785.patch')
-rw-r--r--recipes/busybox/busybox-1.14.3/r24785.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/recipes/busybox/busybox-1.14.3/r24785.patch b/recipes/busybox/busybox-1.14.3/r24785.patch
new file mode 100644
index 0000000000..e3e80befcd
--- /dev/null
+++ b/recipes/busybox/busybox-1.14.3/r24785.patch
@@ -0,0 +1,14 @@
+--- busybox/util-linux/mdev.c 2009/01/08 17:19:01 24725
++++ busybox/util-linux/mdev.c 2009/01/12 07:57:52 24785
+@@ -179,8 +179,9 @@
+ unsigned i, n;
+ #endif
+ char *a = val;
+- s = strchr(val, ' ');
+- val = (s && s[1]) ? s+1 : NULL;
++ s = strchrnul(val, ' ');
++ val = (s[0] && s[1]) ? s+1 : NULL;
++ s[0] = '\0';
+ #if ENABLE_FEATURE_MDEV_RENAME_REGEXP
+ /* substitute %1..9 with off[1..9], if any */
+ n = 0;