summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: