summaryrefslogtreecommitdiffstats
path: root/ldap/servers/slapd/util.c
diff options
context:
space:
mode:
authorRich Megginson <rmeggins@redhat.com>2006-02-16 17:39:53 +0000
committerRich Megginson <rmeggins@redhat.com>2006-02-16 17:39:53 +0000
commit94b305200b3b4294d16fdda1e6d6cb41cb3b048f (patch)
treeeeb0ce4041660524cfa61789cc475ce5773e92be /ldap/servers/slapd/util.c
parent7dc6aaa83b9f854c81a1284a380f13e1aaab37d0 (diff)
downloadds-94b305200b3b4294d16fdda1e6d6cb41cb3b048f.tar.gz
ds-94b305200b3b4294d16fdda1e6d6cb41cb3b048f.tar.xz
ds-94b305200b3b4294d16fdda1e6d6cb41cb3b048f.zip
Bug(s) fixed: 181776
Bug Description: 64bit issues with normalize_path(), make_dn(), and add_aci_v() Reviewed by: Nathan and Noriko (Thanks!) Fix Description: 1) use sizeof(char *) as the elemsize to pass to slapi_ch_calloc(). 2) create a variable const char *NULLSTR = 0 to pass as the last argument to the varargs functions. Platforms tested: RHEL4 64 Flag Day: no Doc impact: no
Diffstat (limited to 'ldap/servers/slapd/util.c')
-rw-r--r--ldap/servers/slapd/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldap/servers/slapd/util.c b/ldap/servers/slapd/util.c
index cb695fc1..9870e351 100644
--- a/ldap/servers/slapd/util.c
+++ b/ldap/servers/slapd/util.c
@@ -408,8 +408,8 @@ normalize_path(char *path)
char *dname = slapi_ch_strdup(path);
char *dnamep = dname;
char *bnamep = NULL;
- char **dirs = (char **)slapi_ch_calloc(strlen(path), 1);
- char **rdirs = (char **)slapi_ch_calloc(strlen(path), 1);
+ char **dirs = (char **)slapi_ch_calloc(strlen(path), sizeof(char *));
+ char **rdirs = (char **)slapi_ch_calloc(strlen(path), sizeof(char *));
char **dp = dirs;
char **rdp;
do {