From 2bf30fd612a399643521c08e388dfe823b023f4b Mon Sep 17 00:00:00 2001 From: Stephan Sundermann Date: Wed, 21 Jan 2015 20:50:21 +0100 Subject: [PATCH] MapInfo: Fix ArgumentOutOfRangeException Respect the value's length so there is no exception when value doesn't contain size's bytes. --- sources/custom/MapInfo.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/custom/MapInfo.cs b/sources/custom/MapInfo.cs index 49af97fd0f..ab2cf2a71b 100644 --- a/sources/custom/MapInfo.cs +++ b/sources/custom/MapInfo.cs @@ -34,7 +34,7 @@ namespace Gst { return data; } set { - Marshal.Copy (value, 0, _data, Data.Length); + Marshal.Copy (value, 0, _data, value.Length); } }