Fix q[-1] ref in prev commit

This commit is contained in:
Howard Chu 2007-01-29 23:56:59 +00:00
parent 67f16caec0
commit 51e58c671e

View 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';