diff options
author | Patrick Monnerat <pm@datasphere.ch> | 2011-04-18 15:54:45 +0200 |
---|---|---|
committer | Patrick Monnerat <pm@datasphere.ch> | 2011-04-18 15:54:45 +0200 |
commit | 213939c8ba3f5e4b73871257208a6f646d967234 (patch) | |
tree | 4fb5a0069835d7305bd0e97dc7ee6e825f8c2731 /packages/OS400/os400sys.c | |
parent | 82ecc85d9ed0fc05931fb6d6893eda567a3c443f (diff) |
Augment RPG binding with "OLDIES" definitions.
Fix OS400 LDAP wrappers: strings were non null-terminated.
Diffstat (limited to 'packages/OS400/os400sys.c')
-rw-r--r-- | packages/OS400/os400sys.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/OS400/os400sys.c b/packages/OS400/os400sys.c index 071fa482d..5527ce720 100644 --- a/packages/OS400/os400sys.c +++ b/packages/OS400/os400sys.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -863,6 +863,7 @@ Curl_ldap_get_dn_a(void * ld, LDAPMessage * entry) return cp2; QadrtConvertE2A(cp2, cp, i, i); + cp2[i] = '\0'; /* No way to allocate a buffer here, because it will be released by ldap_memfree() and ldap_memalloc() does not exist. The solution is to @@ -894,6 +895,7 @@ Curl_ldap_first_attribute_a(void * ld, return cp2; QadrtConvertE2A(cp2, cp, i, i); + cp2[i] = '\0'; /* No way to allocate a buffer here, because it will be released by ldap_memfree() and ldap_memalloc() does not exist. The solution is to @@ -925,6 +927,7 @@ Curl_ldap_next_attribute_a(void * ld, return cp2; QadrtConvertE2A(cp2, cp, i, i); + cp2[i] = '\0'; /* No way to allocate a buffer here, because it will be released by ldap_memfree() and ldap_memalloc() does not exist. The solution is to |