projects
/
tedtools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fd1e4b
)
Fix searching key with presented its length
author
teodor
<teodor>
Fri, 26 Sep 2008 23:13:14 +0000
(23:13 +0000)
committer
teodor
<teodor>
Fri, 26 Sep 2008 23:13:14 +0000
(23:13 +0000)
sfxstr.c
patch
|
blob
|
history
diff --git
a/sfxstr.c
b/sfxstr.c
index
3eb12c4
..
4a4e4da
100644
(file)
--- a/
sfxstr.c
+++ b/
sfxstr.c
@@
-181,7
+181,7
@@
SFSFindDataFromSavedOrSave(SFSTree *info, SFSDataIO *in, SFSTreePosition *positi
}
if ( node->isskip ) {
- if ( in->keylen>0 && in->keylen - (((char*)ptr) - in->key)
>
node->nchar )
+ if ( in->keylen>0 && in->keylen - (((char*)ptr) - in->key)
<
node->nchar )
return NULL;
else if ( STRNCMP(ptr, ((char*)node)+node->dataptr, node->nchar) ) {
ptr+=node->nchar;