X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fzoom-c.c;h=2a9d43303b95eb9aa5e0c8a46d8a9148decd0270;hb=8d691989077a0addcbd840d769dce6700f3d9622;hp=dd62ea7984d14df52b8136af92d97029d7cdd3a8;hpb=2ede0bb278b22c8ce1cdd48e9a11a5924d433763;p=yaz-moved-to-github.git diff --git a/src/zoom-c.c b/src/zoom-c.c index dd62ea7..2a9d433 100644 --- a/src/zoom-c.c +++ b/src/zoom-c.c @@ -1,8 +1,8 @@ /* - * Copyright (C) 1995-2006, Index Data ApS + * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: zoom-c.c,v 1.102 2006-12-06 21:35:58 adam Exp $ + * $Id: zoom-c.c,v 1.104 2007-01-03 08:42:15 adam Exp $ */ /** * \file zoom-c.c @@ -1276,7 +1276,7 @@ static zoom_ret ZOOM_connection_send_init(ZOOM_connection c) odr_prepend(c->odr_out, "ZOOM-C", ireq->implementationName)); - version = odr_strdup(c->odr_out, "$Revision: 1.102 $"); + version = odr_strdup(c->odr_out, "$Revision: 1.104 $"); if (strlen(version) > 10) /* check for unexpanded CVS strings */ version[strlen(version)-2] = '\0'; ireq->implementationVersion = @@ -2265,6 +2265,8 @@ static void handle_records(ZOOM_connection c, Z_Records *sr, syntax, elementSetName); } *count -= i; + if (*count < 0) + *count = 0; *start += i; yaz_log(log_details, "handle_records resultset=%p start=%d count=%d",