summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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':