diff options
author | nulltoken <emeric.fermas@gmail.com> | 2013-10-14 17:12:47 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2013-10-15 21:56:05 +0400 |
commit | b10c4b6e4cc8e15e80313650badea5734037d5cf (patch) | |
tree | e60b606f0e21f7bb5a4aba856d62cc186a5d4d14 /LibGit2Sharp/Configuration.cs | |
parent | 75eaceb3b4aa3fa30cf7b2d6876679d1986af0bb (diff) |
Make string marshaling either lax or strict
Diffstat (limited to 'LibGit2Sharp/Configuration.cs')
-rw-r--r-- | LibGit2Sharp/Configuration.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/LibGit2Sharp/Configuration.cs b/LibGit2Sharp/Configuration.cs index ed69ad34..3734554d 100644 --- a/LibGit2Sharp/Configuration.cs +++ b/LibGit2Sharp/Configuration.cs @@ -282,8 +282,8 @@ namespace LibGit2Sharp { var entry = (GitConfigEntry)Marshal.PtrToStructure(entryPtr, typeof(GitConfigEntry)); - return new ConfigurationEntry<string>(Utf8Marshaler.FromNative(entry.namePtr), - Utf8Marshaler.FromNative(entry.valuePtr), + return new ConfigurationEntry<string>(LaxUtf8Marshaler.FromNative(entry.namePtr), + LaxUtf8Marshaler.FromNative(entry.valuePtr), (ConfigurationLevel)entry.level); }); } |