summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfcolin2007-02-01 10:02:04 +0000
committerfcolin2007-02-01 10:02:04 +0000
commit7d7a300958e8c103d96ff7fffe6908923a3fa424 (patch)
treef48e6b3018f70b137fa663bc7a586fbf4f1a9bbf
parent779c3a6a93a888ef6c958e1b88624fe1a255a731 (diff)
downloadivy-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)
-rw-r--r--CSharp/Ivy/IvyPPC/IvyTCPStreamV3.cs3
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;