From 7330ea6fe4f984d5bd0498aa7e962ad4d7462916 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Mon, 17 Nov 2003 21:32:58 +0000 Subject: [PATCH] Reverse the order of "toolkit-supplied / application-supplied" strings sent as implementationId, Name and Version. Also, remove the spaces around the slash. This brings the GFS in line with the behaviour of ZOOM-C on the client side. --- src/seshigh.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/seshigh.c b/src/seshigh.c index 05cc464..40d4049 100644 --- a/src/seshigh.c +++ b/src/seshigh.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2003, Index Data * See the file LICENSE for details. * - * $Id: seshigh.c,v 1.1 2003-10-27 12:21:35 adam Exp $ + * $Id: seshigh.c,v 1.2 2003-11-17 21:32:58 mike Exp $ */ /* @@ -1589,8 +1589,9 @@ static Z_APDU *process_initRequest(association *assoc, request *reqb) odr_malloc (assoc->encode, strlen(assoc->init->implementation_id) + 10 + strlen(resp->implementationId)); - sprintf (nv, "%s / %s", - resp->implementationId, assoc->init->implementation_id); + sprintf (nv, "%s/%s", + assoc->init->implementation_id, + resp->implementationId); resp->implementationId = nv; } if (assoc->init->implementation_name) @@ -1599,8 +1600,9 @@ static Z_APDU *process_initRequest(association *assoc, request *reqb) odr_malloc (assoc->encode, strlen(assoc->init->implementation_name) + 10 + strlen(resp->implementationName)); - sprintf (nv, "%s / %s", - resp->implementationName, assoc->init->implementation_name); + sprintf (nv, "%s/%s", + assoc->init->implementation_name, + resp->implementationName); resp->implementationName = nv; } if (assoc->init->implementation_version) @@ -1609,9 +1611,9 @@ static Z_APDU *process_initRequest(association *assoc, request *reqb) odr_malloc (assoc->encode, strlen(assoc->init->implementation_version) + 10 + strlen(resp->implementationVersion)); - sprintf (nv, "YAZ %s / %s", - resp->implementationVersion, - assoc->init->implementation_version); + sprintf (nv, "%s/YAZ %s", + assoc->init->implementation_version, + resp->implementationVersion); resp->implementationVersion = nv; } -- 1.7.10.4