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

From: <git_AT_suckless.org>
Date: Tue, 24 Mar 2015 23:53:59 +0100 (CET)

commit 274f9eaf421d92046ab2a63b3f6e5f097967f7b2
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 Tue Mar 24 2015 - 23:53:59 CET

This archive was generated by hypermail 2.3.0 : Wed Mar 25 2015 - 00:10:47 CET