2009-03-28 Christian Hoff <christian_hoff@gmx.net>

* gtk/TextBuffer.custom: Use the right overload of Marshal.Copy
	[Fixes #480010]

svn path=/trunk/gtk-sharp/; revision=130461
This commit is contained in:
Christian Hoff 2009-03-28 11:46:10 +00:00
parent 01ed1a5e3e
commit 30b112fb2a
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2009-03-28 Christian Hoff <christian_hoff@gmx.net>
* gtk/TextBuffer.custom: Use the right overload of Marshal.Copy
[Fixes #480010]
2009-03-19 Christian Hoff <christian_hoff@gmx.net>
* parser/gapi2xml.pl: Introduce a "parser_version" attribute.

View file

@ -159,7 +159,7 @@ public byte[] Serialize(Gtk.TextBuffer content_buffer, Gdk.Atom format, Gtk.Text
return new byte [0];
int sz = (int) (uint) length;
byte[] ret = new byte [sz];
Marshal.Copy (ret, 0, raw_ret, sz);
Marshal.Copy (raw_ret, ret, 0, sz);
return ret;
}