1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-23 17:34:00 +03:00

[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 2003-11-24 22:27:20 -08:00 committed by Greg KH
parent f7b4eca455
commit 6968d494d7

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':