diff options
author | Jay Berkenbilt <ejb@ql.org> | 2018-08-14 17:39:07 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2018-08-14 17:39:07 +0200 |
commit | b4ce557be5ec287b2f58c093439894bad98f4b88 (patch) | |
tree | f92711659c3ac8a436e02d4335861fc6d569ed29 /libqpdf | |
parent | b4bdc42b4fd627529e1c4a4636d1631254a2f26e (diff) | |
download | qpdf-b4ce557be5ec287b2f58c093439894bad98f4b88.tar.zst |
Fix error in QPDFSystemError.cc
Diffstat (limited to 'libqpdf')
-rw-r--r-- | libqpdf/QPDFSystemError.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libqpdf/QPDFSystemError.cc b/libqpdf/QPDFSystemError.cc index 094341cd..65aeaab7 100644 --- a/libqpdf/QPDFSystemError.cc +++ b/libqpdf/QPDFSystemError.cc @@ -24,7 +24,7 @@ QPDFSystemError::createWhat(std::string const& description, // message is longer. strerror_s is a templated function that // knows the size of buf and truncates. char buf[94]; - if (strerror_s(buf, errno) != 0) + if (strerror_s(buf, system_errno) != 0) { message = description + ": failed with an unknown error"; } @@ -33,7 +33,7 @@ QPDFSystemError::createWhat(std::string const& description, message = description + ": " + buf; } #else - message = description + ": " + strerror(errno); + message = description + ": " + strerror(system_errno); #endif return message; } |