diff options
author | Jay Berkenbilt <ejb@ql.org> | 2013-02-28 21:47:48 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2013-03-05 19:33:32 +0100 |
commit | 6b9297882e0106b5c0af53320673d6341b9bea91 (patch) | |
tree | 486ef480b4d16a3df7c37569a6dcd62ed29b9dbe /libqpdf/QUtil.cc | |
parent | 8be827761347b7a0a4ce6e7bdfa6fd4585606b21 (diff) | |
download | qpdf-6b9297882e0106b5c0af53320673d6341b9bea91.tar.zst |
Mark secure CRT warnings with comment
Put a specific comment marker next to every piece of code that MSVC
gives warning 4996 for. This warning is generated for calls to
functions that Microsoft considers insecure or deprecated. This
change is in preparation for fixing all these cases even though none
of them are actually incorrect or insecure as used in qpdf. The
comment marker makes them easier to find so they can be fixed in
subsequent commits.
Diffstat (limited to 'libqpdf/QUtil.cc')
-rw-r--r-- | libqpdf/QUtil.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libqpdf/QUtil.cc b/libqpdf/QUtil.cc index 967e832c..5c92613a 100644 --- a/libqpdf/QUtil.cc +++ b/libqpdf/QUtil.cc @@ -84,7 +84,7 @@ QUtil::unsigned_char_pointer(char const* str) void QUtil::throw_system_error(std::string const& description) { - throw std::runtime_error(description + ": " + strerror(errno)); + throw std::runtime_error(description + ": " + strerror(errno)); // XXXX } int @@ -159,7 +159,7 @@ QUtil::hex_encode(std::string const& input) buf[hex_size - 1] = '\0'; for (unsigned int i = 0; i < input_size; ++i) { - sprintf(buf + i * 2, "%02x", static_cast<unsigned char>(input[i])); + sprintf(buf + i * 2, "%02x", static_cast<unsigned char>(input[i])); // XXXX } return buf; } |