diff options
author | Stephan Sundermann <ssundermann@gnome.org> | 2015-01-21 20:50:21 +0100 |
---|---|---|
committer | Stephan Sundermann <ssundermann@gnome.org> | 2015-01-21 20:50:21 +0100 |
commit | 2bf30fd612a399643521c08e388dfe823b023f4b (patch) | |
tree | a863053ac9b477ba7b13091178c6d508fcf77df1 | |
parent | 0c840b69afc07512f5b01ffc8326cc57b9d0bbe5 (diff) |
MapInfo: Fix ArgumentOutOfRangeException
Respect the value's length so there is no exception when value doesn't contain size's bytes.
-rw-r--r-- | sources/custom/MapInfo.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/custom/MapInfo.cs b/sources/custom/MapInfo.cs index 49af97f..ab2cf2a 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); } } |