activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r517247 - /activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/Transport/Stomp/StompWireFormat.cs
Date Mon, 12 Mar 2007 15:23:15 GMT
Author: chirino
Date: Mon Mar 12 08:23:14 2007
New Revision: 517247

URL: http://svn.apache.org/viewvc?view=rev&rev=517247
Log:
- Make it compile under the CF2.0 also

Modified:
    activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/Transport/Stomp/StompWireFormat.cs

Modified: activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/Transport/Stomp/StompWireFormat.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/Transport/Stomp/StompWireFormat.cs?view=diff&rev=517247&r1=517246&r2=517247
==============================================================================
--- activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/Transport/Stomp/StompWireFormat.cs
(original)
+++ activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/Transport/Stomp/StompWireFormat.cs
Mon Mar 12 08:23:14 2007
@@ -118,7 +118,8 @@
                 }
                 ms.WriteByte((byte)nextChar);
             }
-            return encoding.GetString(ms.ToArray());
+            byte[] data = ms.ToArray();
+            return encoding.GetString(data, 0, data.Length);
         }
         
         public Object Unmarshal(BinaryReader dis)



Mime
View raw message