Browse Source

Fix buffer size in array pool for an IP addresses

Fixes #25
NX 7 years ago
parent
commit
a52ff96d04
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Source/Managed/ENet.cs

+ 2 - 2
Source/Managed/ENet.cs

@@ -95,7 +95,7 @@ namespace ENet {
 
 		public static byte[] GetBuffer() {
 			if (buffer == null)
-				buffer = new byte[16];
+				buffer = new byte[64];
 
 			return buffer;
 		}
@@ -907,4 +907,4 @@ namespace ENet {
 		[DllImport(nativeLibrary, CallingConvention = CallingConvention.Cdecl)]
 		internal static extern void enet_peer_reset(IntPtr peer);
 	}
-}
+}