diff options
author | Rich Megginson <rmeggins@redhat.com> | 2005-03-18 20:28:29 +0000 |
---|---|---|
committer | Rich Megginson <rmeggins@redhat.com> | 2005-03-18 20:28:29 +0000 |
commit | 115327c9e4163ef87c144cd19a82d1ee05a0c070 (patch) | |
tree | 546e62600d91ca14171bbc5fd43ec7bf28240486 /ldap | |
parent | 4bf5beed6a039ef5745a11c01ba328107e6e543e (diff) | |
download | ds-115327c9e4163ef87c144cd19a82d1ee05a0c070.tar.gz ds-115327c9e4163ef87c144cd19a82d1ee05a0c070.tar.xz ds-115327c9e4163ef87c144cd19a82d1ee05a0c070.zip |
Fix snprintf into sizeof(char *) instead of actual buffer size
Diffstat (limited to 'ldap')
-rw-r--r-- | ldap/cm/newinstnt/dsinst.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ldap/cm/newinstnt/dsinst.c b/ldap/cm/newinstnt/dsinst.c index 5b116382..5674604c 100644 --- a/ldap/cm/newinstnt/dsinst.c +++ b/ldap/cm/newinstnt/dsinst.c @@ -908,7 +908,7 @@ int set_default_ldap_settings() mi.m_nMCCPort=DEFAULT_SERVER_PORT; mi.m_szMCCBindAs = malloc(MAX_STR_SIZE); - my_snprintf(mi.m_szMCCBindAs, sizeof(mi.m_szMCCBindAs), "%s", DEFAULT_SSPT_USER); + my_snprintf(mi.m_szMCCBindAs, MAX_STR_SIZE, "%s", DEFAULT_SSPT_USER); my_strncpy(mi.m_szUGSuffix, mi.m_szInstanceSuffix, sizeof(mi.m_szUGSuffix)); mi.m_nUGPort=DEFAULT_SERVER_PORT; @@ -971,7 +971,7 @@ void set_ldap_settings() my_strncpy(mi.m_szMCCHost, mi.m_szInstanceHostName, sizeof(mi.m_szMCCHost)); mi.m_nMCCPort = mi.m_nInstanceServerPort; my_strncpy(mi.m_szMCCSuffix, NS_DOMAIN_ROOT, sizeof(mi.m_szMCCSuffix)); - my_snprintf(mi.m_szMCCBindAs, sizeof(mi.m_szMCCBindAs), "%s", mi.m_szSsptUid); + my_snprintf(mi.m_szMCCBindAs, MAX_STR_SIZE, "%s", mi.m_szSsptUid); my_strncpy(mi.m_szMCCPw, mi.m_szSsptUidPw, sizeof(mi.m_szMCCPw)); } |