summaryrefslogtreecommitdiff
path: root/lib/Output.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Output.cc')
-rw-r--r--lib/Output.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Output.cc b/lib/Output.cc
index 912af25..7d619b6 100644
--- a/lib/Output.cc
+++ b/lib/Output.cc
@@ -39,8 +39,8 @@ Output::Output(String no, int create, int trunc) throw (GeneralException) :
int Output::wrapopen(const String & n, int create, int trunc) {
#ifndef _WIN32
- return open(no.to_charp(), (create ? O_CREAT : 0) |
- (trunc ? O_TRUNC : 0) | O_WRONLY, 00666);
+ return open(n.to_charp(), (create ? O_CREAT : 0) |
+ (trunc ? O_TRUNC : 0) | O_WRONLY, 00666);
#else
DWORD dwCreationDisposition;
switch ((create ? 1 : 0) | (trunc ? 2 : 0)) {