]> git.sur5r.net Git - openldap/commit
Fix lutil_memrchr():
authorHallvard Furuseth <hallvard@openldap.org>
Mon, 14 Nov 2005 15:40:01 +0000 (15:40 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Mon, 14 Nov 2005 15:40:01 +0000 (15:40 +0000)
commit6a778f99f5645c744dc6c17abc7f9bfb766a00f9
treeb75f26b4b5a2aa12ed6bf5bbf9f7dc43871df6c7
parent2bf647fa1693e10373b58e32252686310d28df64
Fix lutil_memrchr():
Avoid void* pointer arithmetic.
Convert int c to unsigned char, so c=<negative char value> will match.
Do not decrement pointer below start of array (even when value is not used).
libraries/liblutil/utils.c