From 7d7a300958e8c103d96ff7fffe6908923a3fa424 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 10:02:04 +0000 Subject: Utilisateur : Fcolin Date : 19/04/06 Heure : 11:51 Archivé dans $/CSharp/Ivy/Ivy Commentaire: (vss 12) --- CSharp/Ivy/IvyPPC/IvyTCPStreamV3.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'CSharp/Ivy/IvyPPC') 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; -- cgit v1.1