From: Mike Taylor Date: Wed, 2 Nov 2011 12:29:54 +0000 (+0000) Subject: When ZOOM_set_dset_error() is passed an addinfo2 as well as addinfo, X-Git-Tag: v4.2.19~4 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=3d43554048d6e68909638c65a3d55b945ec38555;p=yaz-moved-to-github.git 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. --- 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)