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 /libtests/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 'libtests/qutil.cc')
-rw-r--r-- | libtests/qutil.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libtests/qutil.cc b/libtests/qutil.cc index 4e8c7362..e293c374 100644 --- a/libtests/qutil.cc +++ b/libtests/qutil.cc @@ -66,7 +66,7 @@ void fopen_wrapper_test() { std::cout << "before fopen" << std::endl; f = QUtil::fopen_wrapper("fopen file", - fopen("/this/file/does/not/exist", "r")); + fopen("/this/file/does/not/exist", "r")); // XXXX std::cout << "after fopen" << std::endl; (void) fclose(f); } @@ -89,7 +89,7 @@ void getenv_test() static void print_utf8(unsigned long val) { char t[20]; - sprintf(t, "%lx", val); + sprintf(t, "%lx", val); // XXXX std::string result = QUtil::toUTF8(val); std::cout << "0x" << t << " ->"; if (val < 0xfffe) @@ -105,7 +105,7 @@ static void print_utf8(unsigned long val) iter != result.end(); ++iter) { char t[3]; - sprintf(t, "%02x", static_cast<unsigned char>(*iter)); + sprintf(t, "%02x", static_cast<unsigned char>(*iter)); // XXXX std::cout << " " << t; } } |