Skip to content
Snippets Groups Projects
Commit 92839e81 authored by Julio Sánchez Fernández's avatar Julio Sánchez Fernández
Browse files

Fixed inconsistent management of white space that was producing parsing
problems in slapd.
parent 63498d1a
No related branches found
No related tags found
No related merge requests found
......@@ -98,7 +98,7 @@ append_to_safe_string(safe_string * ss, char * s)
}
strncpy(&ss->val[ss->pos], s, l);
ss->pos += l;
if ( ss->pos > 0 && ss->val[ss->pos-1] == ' ' )
if ( ss->pos > 0 && isspace(ss->val[ss->pos-1]) )
ss->at_whsp = 1;
else
ss->at_whsp = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment