projects
/
idzebra-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:
3e4a782
)
Use non-const char return value for strtok work
author
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 19 Mar 2007 21:57:25 +0000
(21:57 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 19 Mar 2007 21:57:25 +0000
(21:57 +0000)
index/marcread.c
patch
|
blob
|
history
diff --git
a/index/marcread.c
b/index/marcread.c
index
78c7d82
..
0a12565
100644
(file)
--- a/
index/marcread.c
+++ b/
index/marcread.c
@@
-1,4
+1,4
@@
-/* $Id: marcread.c,v 1.8 2007-03-19 21:50:39 adam Exp $
+/* $Id: marcread.c,v 1.9 2007-03-19 21:57:25 adam Exp $
Copyright (C) 1995-2007
Index Data ApS
@@
-772,7
+772,8
@@
static void parse_data1_tree(struct grs_read_info *p, const char *mc_stmnt,
field = cat_field(p, pf, buf, field);
- pb = wrbuf_cstr(buf);
+ wrbuf_cstr(buf);
+ pb = wrbuf_buf(buf);
for (pb = strtok(pb, "\n"); pb; pb = strtok(NULL, "\n"))
{
if (!is_empty(pb))