mirror of https://github.com/qpdf/qpdf.git
Fix error in QPDFSystemError.cc
This commit is contained in:
parent
b4bdc42b4f
commit
b4ce557be5
|
@ -24,7 +24,7 @@ QPDFSystemError::createWhat(std::string const& description,
|
||||||
// message is longer. strerror_s is a templated function that
|
// message is longer. strerror_s is a templated function that
|
||||||
// knows the size of buf and truncates.
|
// knows the size of buf and truncates.
|
||||||
char buf[94];
|
char buf[94];
|
||||||
if (strerror_s(buf, errno) != 0)
|
if (strerror_s(buf, system_errno) != 0)
|
||||||
{
|
{
|
||||||
message = description + ": failed with an unknown error";
|
message = description + ": failed with an unknown error";
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ QPDFSystemError::createWhat(std::string const& description,
|
||||||
message = description + ": " + buf;
|
message = description + ": " + buf;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
message = description + ": " + strerror(errno);
|
message = description + ": " + strerror(system_errno);
|
||||||
#endif
|
#endif
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue