projects
/
pazpar2-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Oops. output of ccl_pquery not null-terminated. Added null.
[pazpar2-moved-to-github.git]
/
src
/
logic.c
diff --git
a/src/logic.c
b/src/logic.c
index
5013956
..
5632307
100644
(file)
--- a/
src/logic.c
+++ b/
src/logic.c
@@
-1,4
+1,4
@@
-/* $Id: logic.c,v 1.5 2007-04-17 21:25:26 quinn Exp $
+/* $Id: logic.c,v 1.6 2007-04-18 04:07:48 quinn Exp $
Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
@@
-1261,6
+1261,7
@@
static int client_parse_query(struct client *cl)
}
wrbuf_rewind(se->wrbuf);
ccl_pquery(se->wrbuf, cn);
}
wrbuf_rewind(se->wrbuf);
ccl_pquery(se->wrbuf, cn);
+ wrbuf_putc(se->wrbuf, '\0');
if (cl->pquery)
xfree(cl->pquery);
cl->pquery = xstrdup(wrbuf_buf(se->wrbuf));
if (cl->pquery)
xfree(cl->pquery);
cl->pquery = xstrdup(wrbuf_buf(se->wrbuf));