Use puts() instead of printf() for logname(1)
This commit is contained in:
parent
86d12bf0bf
commit
e59cd2e0ce
@ -13,7 +13,7 @@ main(int argc, char *argv[])
|
|||||||
if (argc != 1)
|
if (argc != 1)
|
||||||
eprintf("usage: %s\n", argv0);
|
eprintf("usage: %s\n", argv0);
|
||||||
if ((login = getlogin()))
|
if ((login = getlogin()))
|
||||||
printf("%s\n", login);
|
puts(login);
|
||||||
else
|
else
|
||||||
eprintf("%s: no login name\n", argv0);
|
eprintf("%s: no login name\n", argv0);
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user