- From: Henrik Frystyk Nielsen <frystyk@w3.org>
- Date: Mon, 31 Mar 1997 17:45:33 -0500
- To: www-lib-bugs@w3.org
>Return-Path: conradh@harlequin.co.uk >To: Henrik Frystyk Nielsen <frystyk@w3.org> >Subject: Bug in libwww-5.1 >Date: Tue, 11 Mar 1997 17:28:18 +0000 >From: Conrad Hughes <conradh@harlequin.co.uk> > >In Library/src/HTRules.c: > > PUBLIC BOOL HTRule_add (HTList * list, HTRuleOp op, > const char * pattern, const char * replace) > { > if (list && pattern) { > HTRule * me; > if ((me = (HTRule *) HT_CALLOC(1, sizeof(HTRule))) == NULL) > HT_OUTOFMEM("HTRule_add"); > me->op = op; > StrAllocCopy(me->pattern, pattern); > if (replace) { > char *ptr = strchr(replace, '*'); > StrAllocCopy(me->replace, replace); > me->insert = ptr ? ptr-replace : -1; > if (APP_TRACE) > HTTrace("Rule Add.... For `%s\' op %d `%s\'\n", > pattern, op, replace); > } else > HTTrace("Rule Add.... For `%s\' op %d\n", pattern, op); > return HTList_appendObject(rules, (void *) me); > } > return NO; > } > >.. on the fourth last line, the HTList_appendObject(rules, (void *) me) >should append to `list', not `rules'. > >Conrad > -- Henrik Frystyk Nielsen, <frystyk@w3.org> World Wide Web Consortium, MIT/LCS NE43-346 545 Technology Square, Cambridge MA 02139, USA
Received on Monday, 31 March 1997 17:45:24 UTC