-/* $Id: zrpn.c,v 1.180 2005-04-29 10:36:13 adam Exp $
+/* $Id: zrpn.c,v 1.182 2005-04-29 10:54:45 adam Exp $
Copyright (C) 1995-2005
Index Data ApS
return ZEBRA_OK;
}
/* prepare dictionary scanning */
- if (pos <= 0)
+ if (pos < 1 || pos > num)
{
zh->errCode = YAZ_BIB1_SCAN_UNSUPP_VALUE_OF_POSITION_IN_RESPONSE;
*num_entries = 0;
}
before = pos-1;
after = 1+num-pos;
- yaz_log(YLOG_EBUG, "rpn_scan pos=%d num=%d before=%d "
+ yaz_log(YLOG_DEBUG, "rpn_scan pos=%d num=%d before=%d "
"after=%d before+after=%d",
pos, num, before, after, before+after);
scan_info_array = (struct scan_info *)