From d21bcdabfc52f77325a7683e8e121f950daf4abc Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 13:00:15 +0000 Subject: Utilisateur : Fcolin Date : 14/06/05 Heure : 11:37 Archivé dans $/Bus/Ivy Commentaire: (vss 24) --- Bus/Ivy/IvyApplication.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Bus') diff --git a/Bus/Ivy/IvyApplication.cxx b/Bus/Ivy/IvyApplication.cxx index 91a2d98..7ed553c 100644 --- a/Bus/Ivy/IvyApplication.cxx +++ b/Bus/Ivy/IvyApplication.cxx @@ -346,7 +346,12 @@ int IvyApplication::SendMsg(const char *message) { ivy::string buffer; const char **substring; - pcre_get_substring_list(message,ovector, match_count, &substring); + int err = pcre_get_substring_list(message,ovector, match_count, &substring); + if ( err != 0 ) + { + SendMsg( Error, Error, "Memory Alloc Error" ); + } + else { for ( int j = 1; j < match_count; j++ ) { buffer += substring[j]; @@ -355,6 +360,7 @@ int IvyApplication::SendMsg(const char *message) pcre_free_substring_list(substring); SendMsg( Msg, i, buffer.c_str() ); count++; + } } #else if ( exp && exp->Match( message ) ) -- cgit v1.1