소스 검색

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.

Noriko Hosoi 18 년 전
부모
커밋
8fe1c2f691
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      ldap/servers/slapd/tools/rsearch/infadd.c

+ 1 - 1
ldap/servers/slapd/tools/rsearch/infadd.c

@@ -157,7 +157,7 @@ int main(int argc, char **argv)
     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) {