Eliminate extra trailing space

This commit is contained in:
Eric Andersen 2002-03-20 16:10:54 +00:00
parent c7a3fb96d0
commit 27eff033d2

View File

@ -96,12 +96,11 @@ int uname_main(int argc, char **argv)
strcpy(uname_info.processor, "unknown"); 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) { if (toprint & 1) {
printf("%s ", ((char *)(&uname_info)) + *delta ); printf("%s%s", (opt++==0)? "": " ", ((char *)(&uname_info)) + *delta);
} }
} }
putchar('\n'); putchar('\n');
return EXIT_SUCCESS; return EXIT_SUCCESS;