summaryrefslogtreecommitdiff
path: root/Ivy/IvyApplication.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Ivy/IvyApplication.cxx')
-rw-r--r--Ivy/IvyApplication.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Ivy/IvyApplication.cxx b/Ivy/IvyApplication.cxx
index fb399a6..91a2d98 100644
--- a/Ivy/IvyApplication.cxx
+++ b/Ivy/IvyApplication.cxx
@@ -345,14 +345,14 @@ int IvyApplication::SendMsg(const char *message)
if ( match_count > 0 )
{
ivy::string buffer;
- const char *substring;
+ const char **substring;
+ pcre_get_substring_list(message,ovector, match_count, &substring);
for ( int j = 1; j < match_count; j++ )
{
- pcre_get_substring(message, ovector, match_count, j, &substring);
- buffer += substring;
+ buffer += substring[j];
buffer += ARG_END;
- pcre_free_substring( substring );
}
+ pcre_free_substring_list(substring);
SendMsg( Msg, i, buffer.c_str() );
count++;
}