From: Eric Andersen Date: Wed, 20 Mar 2002 16:10:54 +0000 (-0000) Subject: Eliminate extra trailing space X-Git-Tag: 0_60_3~59 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=27eff033d20198f04ecf44af93988b89363650e4;p=oweals%2Fbusybox.git Eliminate extra trailing space --- diff --git a/coreutils/uname.c b/coreutils/uname.c index 0f3a7d5c0..b45f4d156 100644 --- a/coreutils/uname.c +++ b/coreutils/uname.c @@ -96,12 +96,11 @@ int uname_main(int argc, char **argv) strcpy(uname_info.processor, "unknown"); - for (delta=utsname_offset ; toprint ; delta++, toprint >>= 1) { + for (opt=0,delta=utsname_offset ; toprint ; delta++, toprint >>= 1) { if (toprint & 1) { - printf("%s ", ((char *)(&uname_info)) + *delta ); + printf("%s%s", (opt++==0)? "": " ", ((char *)(&uname_info)) + *delta); } } - putchar('\n'); return EXIT_SUCCESS;