diff options
author | fcolin | 2007-02-01 10:02:04 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 10:02:04 +0000 |
commit | 7d7a300958e8c103d96ff7fffe6908923a3fa424 (patch) | |
tree | f48e6b3018f70b137fa663bc7a586fbf4f1a9bbf /CSharp/Ivy/IvyPPC | |
parent | 779c3a6a93a888ef6c958e1b88624fe1a255a731 (diff) | |
download | ivy-csharp-7d7a300958e8c103d96ff7fffe6908923a3fa424.zip ivy-csharp-7d7a300958e8c103d96ff7fffe6908923a3fa424.tar.gz ivy-csharp-7d7a300958e8c103d96ff7fffe6908923a3fa424.tar.bz2 ivy-csharp-7d7a300958e8c103d96ff7fffe6908923a3fa424.tar.xz |
Utilisateur : Fcolin Date : 19/04/06 Heure : 11:51 Archivé dans $/CSharp/Ivy/Ivy Commentaire: (vss 12)
Diffstat (limited to 'CSharp/Ivy/IvyPPC')
-rw-r--r-- | CSharp/Ivy/IvyPPC/IvyTCPStreamV3.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CSharp/Ivy/IvyPPC/IvyTCPStreamV3.cs b/CSharp/Ivy/IvyPPC/IvyTCPStreamV3.cs index d44bd38..8776dd7 100644 --- a/CSharp/Ivy/IvyPPC/IvyTCPStreamV3.cs +++ b/CSharp/Ivy/IvyPPC/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;
|