hmmlconv.c: Correctly set OpenFlags on overwrite
This commit is contained in:
parent
f371e656dc
commit
9d835b4ea3
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue