Use puts() instead of printf() for logname(1)

This commit is contained in:
sin 2014-10-17 15:39:14 +01:00
parent 86d12bf0bf
commit e59cd2e0ce

View File

@ -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;