aboutsummaryrefslogtreecommitdiff
path: root/util-linux/mdev.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2009-02-26 11:57:01 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2009-02-26 11:57:01 +0000
commita76f10b544b4ffe4b0aaf41eede1aeb9b13a95e8 (patch)
treea41295eaee4b3f28a6e20df4e592ffacc42ac4ab /util-linux/mdev.c
parent15c0b725849875c718b168a26e13872e163cde4c (diff)
downloadbusybox-w32-a76f10b544b4ffe4b0aaf41eede1aeb9b13a95e8.tar.gz
busybox-w32-a76f10b544b4ffe4b0aaf41eede1aeb9b13a95e8.tar.bz2
busybox-w32-a76f10b544b4ffe4b0aaf41eede1aeb9b13a95e8.zip
Apply post-1.13.2 fixes, bump version to 1.13.3
Diffstat (limited to 'util-linux/mdev.c')
-rw-r--r--util-linux/mdev.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/util-linux/mdev.c b/util-linux/mdev.c
index 34cabc934..d8b603e2b 100644
--- a/util-linux/mdev.c
+++ b/util-linux/mdev.c
@@ -179,8 +179,9 @@ static void make_device(char *path, int delete)
179 unsigned i, n; 179 unsigned i, n;
180#endif 180#endif
181 char *a = val; 181 char *a = val;
182 s = strchr(val, ' '); 182 s = strchrnul(val, ' ');
183 val = (s && s[1]) ? s+1 : NULL; 183 val = (s[0] && s[1]) ? s+1 : NULL;
184 s[0] = '\0';
184#if ENABLE_FEATURE_MDEV_RENAME_REGEXP 185#if ENABLE_FEATURE_MDEV_RENAME_REGEXP
185 /* substitute %1..9 with off[1..9], if any */ 186 /* substitute %1..9 with off[1..9], if any */
186 n = 0; 187 n = 0;