Skip to content

Commit

Permalink
FIX: When overwriting a longer LocRes, the file is not truncated.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlissaSabre committed Jul 12, 2018
1 parent f864136 commit 70a2c64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lrx/LocRes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ private static string[] LoadStrings(Stream stream)
/// <param name="filename">Path name.</param>
public void Save(string filename)
{
using (var stream = File.OpenWrite(filename))
using (var stream = File.Create(filename))
{
Save(stream);
}
Expand Down

0 comments on commit 70a2c64

Please sign in to comment.