X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fseshigh.c;h=93d8bc3340cccb0c00a8a5d6f0146529b83f6b82;hb=9a32992b1041bf622fdc4825262f5f7110494cce;hp=0879b05bc7687261baf62d5618cd7c2aa6f8338f;hpb=370a23c50a2583a93b0faf2116bb11b43f359080;p=yaz-moved-to-github.git diff --git a/src/seshigh.c b/src/seshigh.c index 0879b05..93d8bc3 100644 --- a/src/seshigh.c +++ b/src/seshigh.c @@ -2,10 +2,12 @@ * Copyright (c) 1995-2004, Index Data * See the file LICENSE for details. * - * $Id: seshigh.c,v 1.31 2004-09-30 21:51:59 adam Exp $ + * $Id: seshigh.c,v 1.33 2004-10-15 00:19:00 adam Exp $ */ - -/* +/** + * \file seshigh.c + * \brief Implements GFS session logic. + * * Frontend server logic. * * This code receives incoming APDUs, and handles client requests by means @@ -550,7 +552,7 @@ static int srw_bend_fetch(association *assoc, int pos, { int code = yaz_diag_bib1_to_srw(rr.errcode); const char *message = yaz_diag_srw_str(code); - int len = 120; + int len = 200; if (message) len += strlen(message); if (rr.errstring) @@ -558,7 +560,8 @@ static int srw_bend_fetch(association *assoc, int pos, record->recordData_buf = odr_malloc(o, len); - sprintf(record->recordData_buf, "\n" + sprintf(record->recordData_buf, "\n" " info:srw/diagnostic/1/%d\n", code); if (rr.errstring) sprintf(record->recordData_buf + strlen(record->recordData_buf), @@ -1370,7 +1373,7 @@ static Z_APDU *process_initRequest(association *assoc, request *reqb) assoc->init->implementation_name, odr_prepend(assoc->encode, "GFS", resp->implementationName)); - version = odr_strdup(assoc->encode, "$Revision: 1.31 $"); + version = odr_strdup(assoc->encode, "$Revision: 1.33 $"); if (strlen(version) > 10) /* check for unexpanded CVS strings */ version[strlen(version)-2] = '\0'; resp->implementationVersion = odr_prepend(assoc->encode,