From e5804f2cb929083713c0082f39182a858c082587 Mon Sep 17 00:00:00 2001 From: Pixel Date: Wed, 26 Oct 2011 11:47:38 -0700 Subject: Protecting the IO class a bit more, and adding the raw filename paradigm for at least the Input class. --- src/Input.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Input.cc b/src/Input.cc index 8f16321..73a2a0a 100644 --- a/src/Input.cc +++ b/src/Input.cc @@ -9,7 +9,7 @@ #include "Printer.h" #ifdef _WIN32 -const char * strerror_r(int errorno, char * buf, size_t bufsize) { +static const char * strerror_r(int errorno, char * buf, size_t bufsize) { #ifdef _MSVC strerror_s(buf, bufsize, errorno); return buf; @@ -49,6 +49,7 @@ static int eioStatsDone(eio_req * req) { Balau::Input::Input(const char * fname) throw (GeneralException) : m_fd(-1), m_size(-1), m_mtime(-1) { m_name.set("Input(%s)", fname); + m_fname = fname; Printer::elog(E_INPUT, "Opening file %s", fname); -- cgit v1.2.3