[Fedora-directory-commits] ldapserver/ldap/servers/slapd/tools/rsearch infadd.c, 1.5, 1.6

Noriko Hosoi (nhosoi) fedora-directory-commits at redhat.com
Thu Oct 18 23:49:35 UTC 2007


Author: nhosoi

Update of /cvs/dirsec/ldapserver/ldap/servers/slapd/tools/rsearch
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv13127

Modified Files:
	infadd.c 
Log Message:
Resolves: #336871
Summary: infadd tool won't start. Fails to load data file (comment #4)
Description: HP compiler does not like to have a function call in a constant
expression.



Index: infadd.c
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/servers/slapd/tools/rsearch/infadd.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- infadd.c	18 Oct 2007 20:26:58 -0000	1.5
+++ infadd.c	18 Oct 2007 23:49:32 -0000	1.6
@@ -157,7 +157,7 @@
     AddThread **threads;
     PRUint32 total = 0, ntotal = 0;
     int counter;
-    char familynames[strlen(TEMPLATEDIR) + 19], givennames[strlen(TEMPLATEDIR) + 18];
+    char familynames[sizeof(TEMPLATEDIR) + 19], givennames[sizeof(TEMPLATEDIR) + 18];
 
     srand(time(NULL));
     if (argc < 2) {




More information about the Fedora-directory-commits mailing list