From 654d594fd43a950db71f61ab770a82f148bf622b Mon Sep 17 00:00:00 2001 From: teodor Date: Fri, 26 Sep 2008 23:13:14 +0000 Subject: [PATCH] Fix searching key with presented its length --- sfxstr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sfxstr.c b/sfxstr.c index 3eb12c4..4a4e4da 100644 --- 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; -- 2.46.1