Skip to content

Commit

Permalink
Fixed document metadata null terminating removal clearing WordDocumen…
Browse files Browse the repository at this point in the history
  • Loading branch information
chillNZ committed Apr 12, 2023
1 parent 90d05a6 commit 03fd5e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Common/StructuredStorage/Common/InternalBitConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ internal string ToString(byte[] value)
string result = enc.GetString(value);
if (result.Contains("\0"))
{
result = result.Remove(result.IndexOf("\0"));
result = result.TrimEnd('\0');
}
return result;
}
Expand Down

0 comments on commit 03fd5e6

Please sign in to comment.