From: Gilles Detillieux To: htdig@htdig.org Subject: [htdig] Patch Fix declaration to refer to first as reference--ensures ANCHOR is properly set. Fixes PR#541 as suggested by . --- htdig-3.1.2.bak/htsearch/Display.h Wed Apr 21 21:47:58 1999 +++ htdig-3.1.2/htsearch/Display.h Fri Jul 30 14:23:56 1999 @@ -151,7 +151,7 @@ protected: String *readFile(char *); void expandVariables(char *); void outputVariable(char *); - String *excerpt(DocumentRef *ref, String urlanchor, int fanchor, int first); + String *excerpt(DocumentRef *ref, String urlanchor, int fanchor, int &first); char *hilight(char *str, String urlanchor, int fanchor); void setupImages(); String *generateStars(DocumentRef *, int); --- htdig-3.1.2.bak/htsearch/Display.cc Wed Apr 21 21:47:58 1999 +++ htdig-3.1.2/htsearch/Display.cc Fri Jul 30 14:24:05 1999 @@ -959,7 +959,7 @@ Display::buildMatchList() //***************************************************************************** String * -Display::excerpt(DocumentRef *ref, String urlanchor, int fanchor, int first) +Display::excerpt(DocumentRef *ref, String urlanchor, int fanchor, int &first) { char *head; int use_meta_description = 0;