diff options
author | Marcin Juszkiewicz <hrw@koansoftware.com> | 2009-01-12 12:11:17 +0100 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@koansoftware.com> | 2009-01-16 15:37:50 +0100 |
commit | 24995e91859cced3a4f85bc4b9a5534ef191db5b (patch) | |
tree | 5bc0162b85415cfa4120beb583f74853428d4666 /packages/busybox/busybox-1.13.2/r24785.patch | |
parent | 5e4817d253b47a758a4b8fba1fcf46a88e390b60 (diff) |
busybox: replace my mdev fix with upstream solution (svn r24785)
Diffstat (limited to 'packages/busybox/busybox-1.13.2/r24785.patch')
-rw-r--r-- | packages/busybox/busybox-1.13.2/r24785.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/busybox/busybox-1.13.2/r24785.patch b/packages/busybox/busybox-1.13.2/r24785.patch new file mode 100644 index 0000000000..e3e80befcd --- /dev/null +++ b/packages/busybox/busybox-1.13.2/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; |