[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



The line responsible for the FNPATTERN is line 286 of web/hobbitgraph.c
and changing it from:
                        newitem->fnpat =3D strdup(p);

To=20

                        newitem->fnpat=3Dmalloc(strlen(p)+2);
                        strcpy(newitem->fnpat,"^");
                        strcat(newitem->fnpat,p);
=20

Will do the trick (at least it seem to work).

If in the future there's the necessity to define a pattern in the middle
of the file it will be simply matched with a FNPATTER .*something so it
should not create problems to other tests/graphs but will definitely
create less problem with disk or data having something like disk inside
of them.

Francesco