]> git.sur5r.net Git - openldap/commitdiff
Fix q[-1] ref in prev commit
authorHoward Chu <hyc@openldap.org>
Mon, 29 Jan 2007 23:56:59 +0000 (23:56 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 29 Jan 2007 23:56:59 +0000 (23:56 +0000)
servers/slapd/schema_init.c

index 8eec00300e9d7171a8ffa9cf93ce8c4b28f0f83e..616d9703842915b381cccaf56eea1facf464339e 100644 (file)
@@ -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';