From 3d43554048d6e68909638c65a3d55b945ec38555 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Wed, 2 Nov 2011 12:29:54 +0000 Subject: [PATCH] When ZOOM_set_dset_error() is passed an addinfo2 as well as addinfo, they are separated by a colon and a space rather than simply concatenated. --- src/zoom-c.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/zoom-c.c b/src/zoom-c.c index dc52963..8d97e0f 100644 --- a/src/zoom-c.c +++ b/src/zoom-c.c @@ -70,8 +70,9 @@ void ZOOM_set_dset_error(ZOOM_connection c, int error, } if (addinfo && addinfo2) { - c->addinfo = (char*) xmalloc(strlen(addinfo) + strlen(addinfo2) + 2); + c->addinfo = (char*) xmalloc(strlen(addinfo) + strlen(addinfo2) + 3); strcpy(c->addinfo, addinfo); + strcat(c->addinfo, ": "); strcat(c->addinfo, addinfo2); } else if (addinfo) -- 1.7.10.4