- for ( unsigned int i = 0; i < filterBuffer.Len(); i++ ) {
- if ( filterBuffer.GetChar(i) == '|' ) {
- filterBuffer[i] = '\0';
- }
+ }
+
+ filterBuffer += "|";
+ // Replace | with \0
+ for ( unsigned int i = 0; i < filterBuffer.Len(); i++ ) {
+ if ( filterBuffer.GetChar(i) == '|' ) {
+ filterBuffer[i] = '\0';