summaryrefslogtreecommitdiff
path: root/Bus
diff options
context:
space:
mode:
authorfcolin2007-02-01 12:59:51 +0000
committerfcolin2007-02-01 12:59:51 +0000
commit93dea2bf0054d7781116ea1c9d481c9fd984da9a (patch)
tree06dffd4a07c18d7587aebc6362eee7601b607527 /Bus
parentb0c0c56739691ddcc1e9094afdbf0cf2d9b30244 (diff)
downloadivy-cplusplus-93dea2bf0054d7781116ea1c9d481c9fd984da9a.zip
ivy-cplusplus-93dea2bf0054d7781116ea1c9d481c9fd984da9a.tar.gz
ivy-cplusplus-93dea2bf0054d7781116ea1c9d481c9fd984da9a.tar.bz2
ivy-cplusplus-93dea2bf0054d7781116ea1c9d481c9fd984da9a.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 'Bus')
-rw-r--r--Bus/Ivy/IvyApplication.cxx7
1 files changed, 4 insertions, 3 deletions
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: