summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2003-11-24 22:27:20 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:04 -0700
commit6968d494d76ea0e6e326e23948d2428b53faccf8 (patch)
tree03f64eb7e12c093d392aa060287c0d2f2194a05b
parentf7b4eca455c7dbf850d984892756f22dbd9ddc3d (diff)
[PATCH] namedev.c strcat tweak
02-namedev.c-strcat-tweak.diff o cat the substitution to the already known end of the string instead of searching it another time
-rw-r--r--namedev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/namedev.c b/namedev.c
index 21815b694a..83852f9df2 100644
--- a/namedev.c
+++ b/namedev.c
@@ -514,7 +514,7 @@ static void apply_format(struct udevice *udev, unsigned char *string)
case 'b':
if (strlen(udev->bus_id) == 0)
break;
- strcat(string, udev->bus_id);
+ strcat(pos, udev->bus_id);
dbg("substitute bus_id '%s'", udev->bus_id);
break;
case 'n':