Subject: Re: [RFC/PATCH] ignore memcmp() overreading in bsearch() callback

From: Andreas Schwab <[email-masked]>
Date: Tue, 15 Jan 2013 21:27:36 +0100

René Scharfe <[email-masked]> writes:

> +	return '\0' - ent->name[key->len];

You need to cast to unsigned char first to make it consistent with
memcmp and strcmp.

Andreas.

-- 
Andreas Schwab, [email-masked]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."