From d48ae3305891a6fab5d9ae1eee90afbe57934eb1 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) --- Ivy/IvyApplication.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Ivy') diff --git a/Ivy/IvyApplication.cxx b/Ivy/IvyApplication.cxx index 245381a..33d62b0 100644 --- a/Ivy/IvyApplication.cxx +++ b/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