summaryrefslogtreecommitdiff
path: root/Ivy/IvyApplication.cxx
diff options
context:
space:
mode:
authorfcolin2007-02-01 12:59:51 +0000
committerfcolin2007-02-01 12:59:51 +0000
commitd48ae3305891a6fab5d9ae1eee90afbe57934eb1 (patch)
treec8a42756ba2e78c2857d7f3927547e1bf084c194 /Ivy/IvyApplication.cxx
parent362bf21b18d9bfd64e598d0a259f5d38bce5e7ac (diff)
downloadivy-cplusplus-d48ae3305891a6fab5d9ae1eee90afbe57934eb1.zip
ivy-cplusplus-d48ae3305891a6fab5d9ae1eee90afbe57934eb1.tar.gz
ivy-cplusplus-d48ae3305891a6fab5d9ae1eee90afbe57934eb1.tar.bz2
ivy-cplusplus-d48ae3305891a6fab5d9ae1eee90afbe57934eb1.tar.xz
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)
Diffstat (limited to 'Ivy/IvyApplication.cxx')
-rw-r--r--Ivy/IvyApplication.cxx7
1 files changed, 4 insertions, 3 deletions
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: