From: Howard Chu Date: Mon, 29 Jan 2007 23:56:59 +0000 (+0000) Subject: Fix q[-1] ref in prev commit X-Git-Tag: OPENLDAP_REL_ENG_2_4_4ALPHA~8^2~107 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=51e58c671eb36999678a66144ba4980b48e1dda3;p=openldap Fix q[-1] ref in prev commit --- diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c index 8eec00300e..616d970384 100644 --- a/servers/slapd/schema_init.c +++ b/servers/slapd/schema_init.c @@ -2107,7 +2107,7 @@ IA5StringNormalize( * position. One is enough because the above loop collapsed * all whitespace to a single space. */ - if ( ASCII_SPACE( q[-1] ) ) --q; + if ( q > normalized->bv_val && ASCII_SPACE( q[-1] ) ) --q; /* null terminate */ *q = '\0';