summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2007-09-04 14:27:40 +0200
committerSimon Josefsson <simon@josefsson.org>2007-09-11 08:41:06 +0200
commitc4425a929d0be64c366e340d3b8d5cb5e4b89fa6 (patch)
treec78c417890da4564276420667f1ff6a0a648578f
parent235bd7f8952dc4387b9021b31b8b683a60465d35 (diff)
downloadgnutls-c4425a929d0be64c366e340d3b8d5cb5e4b89fa6.tar.gz
Guile: Fix `x509-certificate-dn-oid' and related functions.
* guile/src/core.c (X509_CERTIFICATE_DN_OID_FUNCTION_BODY): Use `scm_take_locale_stringn ()' instead of `scm_take_locale_string ()'. * NEWS: Update. Signed-off-by: Simon Josefsson <simon@josefsson.org>
-rw-r--r--guile/src/core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/guile/src/core.c b/guile/src/core.c
index dc27d2369e..217ccede7e 100644
--- a/guile/src/core.c
+++ b/guile/src/core.c
@@ -2380,7 +2380,8 @@ SCM_DEFINE (scm_gnutls_x509_certificate_issuer_dn,
if (c_oid_actual_len < c_oid_len) \
c_oid = scm_realloc (c_oid, c_oid_actual_len); \
\
- result = scm_take_locale_string (c_oid); \
+ result = scm_take_locale_stringn (c_oid, \
+ c_oid_actual_len); \
} \
\
return result;