Re: Re: memmem issues

2008-01-03 Thread Bruno Haible
Paul Eggert wrote: > Yes, thanks, that looks good. Committed. Bruno

Re: Re: memmem issues

2008-01-03 Thread Bruno Haible
> Thanks, but the email that I got lacked a patch. Sorry about it. Here it is (please forgive the line breaking caused by the webmailer): 2008-01-02 Bruno Haible <[EMAIL PROTECTED]> * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *' variables to 'unsigned char *

Re: Re: memmem issues

2008-01-02 Thread Bruno Haible
Paul Eggert wrote: > section 6.2.6.1: > ... > Here again, the intent is that memcmp(&x, &y, sizeof (T)) compares all > the bits in the underlying representation. The only way to do that > portably is via "unsigned char *". OK. Here's a proposed patch for the memmem function. Bruno