X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Fcharsets.c;h=d70c11d7730199b5dcc3a6b693ff796331e1fa0f;hb=5cdddaf1ba96608fcbd221421503b609ded909bf;hp=c78c911e5fc3c5a43933b7ca3a297496606d490b;hpb=ebad7ddfa52ac22000c1ff6178fd3bd962b46dcd;p=pazpar2-moved-to-github.git diff --git a/src/charsets.c b/src/charsets.c index c78c911..d70c11d 100644 --- a/src/charsets.c +++ b/src/charsets.c @@ -1,5 +1,5 @@ /* This file is part of Pazpar2. - Copyright (C) 2006-2010 Index Data + Copyright (C) 2006-2011 Index Data Pazpar2 is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -184,8 +184,6 @@ void pp2_relevance_first(pp2_relevance_token_t prt, char *pout = firstword; char articles[] = "the den der die des an a "; // must end in space - while (*p && !isalnum(*(unsigned char *)p)) - p++; for (; *p && *p != ' ' && pout - firstword < (sizeof(firstword)-2); p++) *pout++ = tolower(*(unsigned char *)p); *pout++ = ' ';