From 0b6202d2d9d45db2f482ff9d18b92bde56b8f222 Mon Sep 17 00:00:00 2001 From: Manu Date: Fri, 6 Nov 2015 11:36:38 +0900 Subject: [PATCH] Made code compile against PCL. --- src/UTF8String.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UTF8String.cs b/src/UTF8String.cs index a6ecd41..7b09a87 100644 --- a/src/UTF8String.cs +++ b/src/UTF8String.cs @@ -126,7 +126,7 @@ namespace SDL2 { byte[] bytes = new byte[_capacity - 1]; Marshal.Copy(_handle, bytes, 0, _capacity - 1); - return Encoding.UTF8.GetString(bytes); + return Encoding.UTF8.GetString(bytes, 0, _capacity - 1); } #endif }