From 97b9bc018e48ada9deeabb54215593afe160f4d9 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Fri, 20 Feb 2009 04:57:47 +0000 Subject: [PATCH] fix-trailing-space-ethernet-mac.patch There's no trailing space after the last mac address addition, it was broken before the recent patch adding the second mac address. Also, we don't need to add the first space by hand if it's unconditionally added in the string afterwards. Reported-by: Werner Almesberger Signed-off-by: Andy Green --- qiboot/src/cpu/s3c2442/gta02.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qiboot/src/cpu/s3c2442/gta02.c b/qiboot/src/cpu/s3c2442/gta02.c index ce8b5a0..61ca75c 100644 --- a/qiboot/src/cpu/s3c2442/gta02.c +++ b/qiboot/src/cpu/s3c2442/gta02.c @@ -605,11 +605,10 @@ char * append_device_specific_cmdline_gta02(char * cmdline) cmdline += strlen(strcpy(cmdline, " g_ether.host_addr=")); cmdline += strlen(strcpy(cmdline, &mac[2])); - *cmdline += ' ' ; cmdline += strlen(strcpy(cmdline, " g_ether.dev_addr=")); cmdline += strlen(strcpy(cmdline, &mac[2])); - *cmdline += ' ' ; + *cmdline++ += ' ' ; bail: this_kernel = real_kernel;