diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2013-08-13 07:29:34 +0200 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2013-08-13 07:29:34 +0200 |
commit | d073e82058df58a6678a4445e411201a1712b14f (patch) | |
tree | 87f36bb8407e149877e9c2a389e473de140a80f0 /src/Output.cc | |
parent | 60589fcd0c7afc4f4cf0d832fd603ae75bc9c71a (diff) |
Shouldn't ignore these return values under GNU...
Diffstat (limited to 'src/Output.cc')
-rw-r--r-- | src/Output.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Output.cc b/src/Output.cc index 3ca97b0..03c0d6e 100644 --- a/src/Output.cc +++ b/src/Output.cc @@ -181,8 +181,8 @@ void Balau::Output::close() throw (GeneralException) { case cbResults_t::CLOSE: m_fd = -1; if (cbResults->result < 0) { - char str[4096]; - strerror_r(cbResults->errorno, str, sizeof(str)); + char buf[4096]; + char * str = strerror_r(cbResults->errorno, buf, sizeof(buf)); throw GeneralException(String("Unable to close file ") + m_name + ": " + str); } delete cbResults; |