fix for: https://issues.apache.org/jira/browse/AMQNET-315
Project: http://git-wip-us.apache.org/repos/asf/activemq-nms-stomp/repo Commit: http://git-wip-us.apache.org/repos/asf/activemq-nms-stomp/commit/1f460424 Tree: http://git-wip-us.apache.org/repos/asf/activemq-nms-stomp/tree/1f460424 Diff: http://git-wip-us.apache.org/repos/asf/activemq-nms-stomp/diff/1f460424 Branch: refs/heads/1.5.x Commit: 1f4604244f7f00a68ab7d3454d71f4a958eafe08 Parents: d7ef00e Author: Timothy A. Bish <[email protected]> Authored: Sun Feb 6 23:50:25 2011 +0000 Committer: Timothy A. Bish <[email protected]> Committed: Sun Feb 6 23:50:25 2011 +0000 ---------------------------------------------------------------------- src/main/csharp/Protocol/StompFrame.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/activemq-nms-stomp/blob/1f460424/src/main/csharp/Protocol/StompFrame.cs ---------------------------------------------------------------------- diff --git a/src/main/csharp/Protocol/StompFrame.cs b/src/main/csharp/Protocol/StompFrame.cs index 1b0f542..52ef99b 100644 --- a/src/main/csharp/Protocol/StompFrame.cs +++ b/src/main/csharp/Protocol/StompFrame.cs @@ -232,7 +232,7 @@ namespace Apache.NMS.Stomp.Protocol { MemoryStream ms = new MemoryStream(); int nextChar; - while((nextChar = dataIn.Read()) != 0) + while((nextChar = dataIn.ReadByte()) != 0) { // The first Null in this case marks the end of data. if(nextChar < 0)
