hmmlconv.c: Correctly set OpenFlags on overwrite

This commit is contained in:
Matt Mascarenhas 2017-04-30 10:32:26 +01:00
parent f371e656dc
commit 9d835b4ea3
1 changed files with 1 additions and 1 deletions

View File

@ -459,7 +459,7 @@ OpenOutput:;
{ {
if(AlwaysOverwrite || PromptOverwrite(OutNameBuf, &AlwaysOverwrite)) if(AlwaysOverwrite || PromptOverwrite(OutNameBuf, &AlwaysOverwrite))
{ {
OpenFlags = (OpenFlags & ~O_CREAT) | O_TRUNC; OpenFlags = (OpenFlags & ~O_EXCL) | O_TRUNC;
goto OpenOutput; goto OpenOutput;
} }
} }