[hackers] [sbase] Replace strlen with unary_n to test zero length. || noname

From: <git_AT_suckless.org>
Date: Sun, 22 Feb 2015 20:42:49 +0100 (CET)

commit 04493426334501bdf166ea227bdb6753b9160f42
Author: noname <noname_AT_inventati.org>
Date: Sun Feb 22 19:37:48 2015 +0000

    Replace strlen with unary_n to test zero length.

diff --git a/test.c b/test.c
index 660048a..957b205 100644
--- a/test.c
+++ b/test.c
_AT_@ -100,7 +100,7 @@ noarg(char **argv)
 static int
 onearg(char **argv)
 {
- return strlen(argv[0]);
+ return unary_n(argv[0]);
 }
 
 static int
Received on Sun Feb 22 2015 - 20:42:49 CET

This archive was generated by hypermail 2.3.0 : Sun Feb 22 2015 - 20:48:19 CET