From 0fa8cd58ecef821104b22550c34a9d8d9f3f3b2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Fri, 24 Nov 2006 06:08:27 +0000 Subject: [PATCH] (der_print_heim_oid): use delim when printing. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19103 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/asn1/der_format.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/asn1/der_format.c b/lib/asn1/der_format.c index 8e3319ebc..4ef50b15c 100644 --- a/lib/asn1/der_format.c +++ b/lib/asn1/der_format.c @@ -111,9 +111,9 @@ der_print_heim_oid (const heim_oid *oid, char delim, char **str) int i; for (i = 0; i < oid->length ; i++) { - p = rk_strpoolprintf(p, "%d%s", - oid->components[i], - i < oid->length - 1 ? " " : ""); + p = rk_strpoolprintf(p, "%d", oid->components[i]); + if (p && i < oid->length - 1) + p = rk_strpoolprintf(p, "%c", delim); if (p == NULL) { *str = NULL; return ENOMEM;