MapInfo: Fix ArgumentOutOfRangeException

Respect the value's length so there is no exception when value doesn't contain size's bytes.
This commit is contained in:
Stephan Sundermann 2015-01-21 20:50:21 +01:00
parent 0c840b69af
commit 2bf30fd612

View file

@ -34,7 +34,7 @@ namespace Gst {
return data;
}
set {
Marshal.Copy (value, 0, _data, Data.Length);
Marshal.Copy (value, 0, _data, value.Length);
}
}