[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
This commit is contained in:
kay.sievers@vrfy.org
2005-04-26 21:13:04 -07:00
committed by Greg KH
parent f7b4eca455
commit 6968d494d7
+1 -1
View File
@@ -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':