From 0efc14ab953aee9e8ed7f8a3218dcd3e240132a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sun, 25 Jan 2009 20:49:13 +0000 Subject: [PATCH] fix warning git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24478 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hx509/name.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/hx509/name.c b/lib/hx509/name.c index 1dc81f888..b13612a7f 100644 --- a/lib/hx509/name.c +++ b/lib/hx509/name.c @@ -235,7 +235,7 @@ _hx509_Name_to_string(const Name *n, char **str) ss = malloc(k + 1); if (ss == NULL) _hx509_abort("allocation failure"); /* XXX */ - ret = wind_ucs2utf8(bmp, bmplen, ss, k + 1); + ret = wind_ucs2utf8(bmp, bmplen, ss, NULL); if (ret) return ret; ss[k] = '\0'; @@ -260,7 +260,7 @@ _hx509_Name_to_string(const Name *n, char **str) ss = malloc(k + 1); if (ss == NULL) _hx509_abort("allocation failure"); /* XXX */ - ret = wind_ucs4utf8(uni, unilen, ss, k + 1); + ret = wind_ucs4utf8(uni, unilen, ss, NULL); if (ret) return ret; ss[k] = '\0';