Skip to content

Commit 03fd5e6

Browse files
committed
Fixed document metadata null terminating removal clearing WordDocument stream
Credit https://github.com/michaelweber EvolutionJobs#1
1 parent 90d05a6 commit 03fd5e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Common/StructuredStorage/Common/InternalBitConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ internal string ToString(byte[] value)
6161
string result = enc.GetString(value);
6262
if (result.Contains("\0"))
6363
{
64-
result = result.Remove(result.IndexOf("\0"));
64+
result = result.TrimEnd('\0');
6565
}
6666
return result;
6767
}

0 commit comments

Comments
 (0)