aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFSystemError.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2018-08-14 17:39:07 +0200
committerJay Berkenbilt <ejb@ql.org>2018-08-14 17:39:07 +0200
commitb4ce557be5ec287b2f58c093439894bad98f4b88 (patch)
treef92711659c3ac8a436e02d4335861fc6d569ed29 /libqpdf/QPDFSystemError.cc
parentb4bdc42b4fd627529e1c4a4636d1631254a2f26e (diff)
downloadqpdf-b4ce557be5ec287b2f58c093439894bad98f4b88.tar.zst
Fix error in QPDFSystemError.cc
Diffstat (limited to 'libqpdf/QPDFSystemError.cc')
-rw-r--r--libqpdf/QPDFSystemError.cc4
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;
}