diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2003-11-24 22:27:20 -0800 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:13:04 -0700 |
commit | 6968d494d76ea0e6e326e23948d2428b53faccf8 (patch) | |
tree | 03f64eb7e12c093d392aa060287c0d2f2194a05b | |
parent | f7b4eca455c7dbf850d984892756f22dbd9ddc3d (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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': |