diff options
author | fcolin | 2007-02-01 09:50:15 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 09:50:15 +0000 |
commit | fd7cc45e5764d2f79f9d5f37e2c46e29703b0ee0 (patch) | |
tree | 9a99fc38371d9ac7dbbc4f100373eb761e72a646 | |
parent | 7b74c7e94ffd19ac99bdfe9a0f6a50d9db067459 (diff) | |
download | ivy-csharp-fd7cc45e5764d2f79f9d5f37e2c46e29703b0ee0.zip ivy-csharp-fd7cc45e5764d2f79f9d5f37e2c46e29703b0ee0.tar.gz ivy-csharp-fd7cc45e5764d2f79f9d5f37e2c46e29703b0ee0.tar.bz2 ivy-csharp-fd7cc45e5764d2f79f9d5f37e2c46e29703b0ee0.tar.xz |
Utilisateur : Fcolin Date : 19/04/06 Heure : 11:51 Archivé dans $/CSharp/Ivy/Ivy Commentaire: (vss 12)
-rw-r--r-- | CSharp/Ivy/Ivy/IvyTCPStreamV3.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CSharp/Ivy/Ivy/IvyTCPStreamV3.cs b/CSharp/Ivy/Ivy/IvyTCPStreamV3.cs index d44bd38..8776dd7 100644 --- a/CSharp/Ivy/Ivy/IvyTCPStreamV3.cs +++ b/CSharp/Ivy/Ivy/IvyTCPStreamV3.cs @@ -201,7 +201,8 @@ namespace IvyBus case MessageType.Msg:
// a bad protocol implementation in C add a delimiter to the end of each arg
// we must remove a delimiter to the end
- msgData = msgData.Remove(msgData.Length - 1,1);
+ if ( msgData.Length > 0 )
+ msgData = msgData.Remove(msgData.Length - 1,1);
receiver.TokenMsg(msgId, msgData.Split( ARG_END ));
break;
|