svn commit: trunk/busybox/util-linux
vda at busybox.net
vda at busybox.net
Sat May 24 16:46:14 UTC 2008
Author: vda
Date: 2008-05-24 09:46:13 -0700 (Sat, 24 May 2008)
New Revision: 22068
Log:
mdev: fix counting of '%' in pattern
Modified:
trunk/busybox/util-linux/mdev.c
Changeset:
Modified: trunk/busybox/util-linux/mdev.c
===================================================================
--- trunk/busybox/util-linux/mdev.c 2008-05-23 21:57:45 UTC (rev 22067)
+++ trunk/busybox/util-linux/mdev.c 2008-05-24 16:46:13 UTC (rev 22068)
@@ -180,8 +180,9 @@
/* substitute %1..9 with off[1..9], if any */
n = 0;
s = val;
- while (*s && *s++ == '%')
- n++;
+ while (*s)
+ if (*s++ == '%')
+ n++;
p = alias = xzalloc(strlen(val) + n * strlen(device_name));
s = val + 1;
More information about the busybox-cvs
mailing list