From 93dea2bf0054d7781116ea1c9d481c9fd984da9a Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 12:59:51 +0000 Subject: Utilisateur : Fcolin Date : 14/09/01 Heure : 16:44 Archivé dans $/Ivy Commentaire: correction BUG Ivy socket Listen apres start Listener et regexp_in.resize (vss 12) --- Bus/Ivy/IvyApplication.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Bus') diff --git a/Bus/Ivy/IvyApplication.cxx b/Bus/Ivy/IvyApplication.cxx index 245381a..33d62b0 100644 --- a/Bus/Ivy/IvyApplication.cxx +++ b/Bus/Ivy/IvyApplication.cxx @@ -6,7 +6,7 @@ #include "IvyApplication.h" #include "Regexp.h" -//#define IVY_DEBUG +#define IVY_DEBUG #define ARG_START "\002" #define ARG_END "\003" @@ -130,10 +130,11 @@ void IvyApplication::OnReceive(char * line) TRACE("IvyApplication %s\n",err.c_str()); return; } - regexp_in.resize( id +1 ); + if ( regexp_in.size() < (id + 1) ) + regexp_in.resize( id + 1 ); regexp_in[ id ] = exp; #ifdef IVY_DEBUG - TRACE("Adding regexp[%d]='%s' size:%d\n",id,arg,regexp_in.size()); + TRACE("Adding regexp[%d]='%s' size: %d\n",id,arg,regexp_in.size()); #endif //IVY_DEBUG break; case DelRegexp: -- cgit v1.1