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:
31232fe
)
Handle unknown register type in zebra_term_untrans
author
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 20 Feb 2006 12:38:42 +0000
(12:38 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 20 Feb 2006 12:38:42 +0000
(12:38 +0000)
index/zrpn.c
patch
|
blob
|
history
diff --git
a/index/zrpn.c
b/index/zrpn.c
index
09f2d34
..
5bee0e7
100644
(file)
--- a/
index/zrpn.c
+++ b/
index/zrpn.c
@@
-1,4
+1,4
@@
-/* $Id: zrpn.c,v 1.208 2005-11-29 11:38:34 adam Exp $
+/* $Id: zrpn.c,v 1.209 2006-02-20 12:38:42 adam Exp $
Copyright (C) 1995-2005
Index Data ApS
@@
-181,8
+181,12
@@
void zebra_term_untrans(ZebraHandle zh, int reg_type,
{
const char *cp = zebra_maps_output(zh->reg->zebra_maps,
reg_type, &src);
- if (!cp && len < IT_MAX_WORD-1)
- dst[len++] = *src++;
+ if (!cp)
+ {
+ if (len < IT_MAX_WORD-1)
+ dst[len++] = *src;
+ src++;
+ }
else
while (*cp && len < IT_MAX_WORD-1)
dst[len++] = *cp++;