From a07ab15ea16f207c2e23a1faa47127f83f288843 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 20 Dec 2001 03:00:53 +0000 Subject: [PATCH] Minor cleanup --- clients/tools/ldapmodify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/tools/ldapmodify.c b/clients/tools/ldapmodify.c index 56f4224374..0334f76c29 100644 --- a/clients/tools/ldapmodify.c +++ b/clients/tools/ldapmodify.c @@ -153,7 +153,7 @@ main( int argc, char **argv ) if( argc < 2 ) usage( prog ); /* strncmp instead of strcmp since NT binaries carry .exe extension */ - ldapadd = ( strncmp( prog, "ldapadd", 7 ) == 0 ); + ldapadd = ( strncmp( prog, "ldapadd", sizeof("ldapadd"-1 ) == 0 ); infile = NULL; not = verbose = want_bindpw = debug = manageDSAit = referrals = 0; -- 2.39.5