diff options
Diffstat (limited to 'lib/Input.cc')
-rw-r--r-- | lib/Input.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Input.cc b/lib/Input.cc index be6981f..318821d 100644 --- a/lib/Input.cc +++ b/lib/Input.cc @@ -10,10 +10,10 @@ #include "config.h" Input::Input(String no) throw (GeneralException) : - Handle(no.strlen() ? open(no.to_charp(), O_RDONLY) : 0), + Handle(no.strlen() ? open(no.to_charp(), O_RDONLY) : dup(0)), n(no) { if (GetHandle() < 0) { - throw IOGeneral(String(_("Error opening file")) + no + _(" for reading: ") + strerror(errno)); + throw IOGeneral(String(_("Error opening file ")) + no + _(" for reading: ") + strerror(errno)); } size = lseek(GetHandle(), 0, SEEK_END); @@ -38,7 +38,7 @@ String Input::GetName() { return n; } -off_t Input::GetSize() { +ssize_t Input::GetSize() { return size; } |