[hackers] [sbase] Use puts() instead of printf() for logname(1) || sin

From: <git_AT_suckless.org>
Date: Fri, 17 Oct 2014 16:39:50 +0200

commit e59cd2e0cebedf60a587473fc7b1a113c19dbb25
Author: sin <sin_AT_2f30.org>
Date: Fri Oct 17 15:39:14 2014 +0100

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

diff --git a/logname.c b/logname.c
index 7d6da8b..f1981a5 100644
--- a/logname.c
+++ b/logname.c
_AT_@ -13,7 +13,7 @@ main(int argc, char *argv[])
         if (argc != 1)
                 eprintf("usage: %s\n", argv0);
         if ((login = getlogin()))
- printf("%s\n", login);
+ puts(login);
         else
                 eprintf("%s: no login name\n", argv0);
         return 0;
Received on Fri Oct 17 2014 - 16:39:50 CEST

This archive was generated by hypermail 2.3.0 : Fri Oct 17 2014 - 16:48:24 CEST