You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2012/06/25 17:18:01 UTC

svn commit: r1353590 - /activemq/activemq-dotnet/Apache.NMS/branches/1.5.x/src/main/csharp/Util/PrimitiveMap.cs

Author: tabish
Date: Mon Jun 25 15:18:00 2012
New Revision: 1353590

URL: http://svn.apache.org/viewvc?rev=1353590&view=rev
Log:
fix for: https://issues.apache.org/jira/browse/AMQNET-390

Modified:
    activemq/activemq-dotnet/Apache.NMS/branches/1.5.x/src/main/csharp/Util/PrimitiveMap.cs

Modified: activemq/activemq-dotnet/Apache.NMS/branches/1.5.x/src/main/csharp/Util/PrimitiveMap.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS/branches/1.5.x/src/main/csharp/Util/PrimitiveMap.cs?rev=1353590&r1=1353589&r2=1353590&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS/branches/1.5.x/src/main/csharp/Util/PrimitiveMap.cs (original)
+++ activemq/activemq-dotnet/Apache.NMS/branches/1.5.x/src/main/csharp/Util/PrimitiveMap.cs Mon Jun 25 15:18:00 2012
@@ -375,7 +375,7 @@ namespace Apache.NMS.Util
 				MarshalPrimitiveMap(map, new EndianBinaryWriter(memoryStream));
 			}
 
-			return memoryStream.GetBuffer();
+			return memoryStream.ToArray();
 		}
 
 		public static void MarshalPrimitiveMap(IDictionary map, Stream stream)