projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c405c72
)
Added check to prevent retrieval of more than global_parameters.toget recs
author
Sebastian Hammer
<quinn@indexdata.com>
Sat, 6 Jan 2007 03:02:47 +0000
(
03:02
+0000)
committer
Sebastian Hammer
<quinn@indexdata.com>
Sat, 6 Jan 2007 03:02:47 +0000
(
03:02
+0000)
src/pazpar2.c
patch
|
blob
|
history
diff --git
a/src/pazpar2.c
b/src/pazpar2.c
index
cb6a384
..
fa2d51f
100644
(file)
--- a/
src/pazpar2.c
+++ b/
src/pazpar2.c
@@
-1,4
+1,4
@@
-/* $Id: pazpar2.c,v 1.15 2007-01-05 20:33:05 adam Exp $ */;
+/* $Id: pazpar2.c,v 1.16 2007-01-06 03:02:47 quinn Exp $ */;
#include <stdlib.h>
#include <stdio.h>
@@
-199,6
+199,8
@@
static void send_present(IOCHAN i)
int start = cl->records + 1;
toget = global_parameters.chunk;
+ if (toget > global_parameters.toget - cl->records)
+ toget = global_parameters.toget - cl->records;
if (toget > cl->hits - cl->records)
toget = cl->hits - cl->records;