From 51e58c671eb36999678a66144ba4980b48e1dda3 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 29 Jan 2007 23:56:59 +0000 Subject: [PATCH] Fix q[-1] ref in prev commit --- servers/slapd/schema_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; -- 2.39.5