diff options
author | Adam Mitz <mitza@objectcomputing.com> | 2022-09-22 17:58:28 -0500 |
---|---|---|
committer | Adam Mitz <mitza@objectcomputing.com> | 2022-10-03 13:20:45 -0500 |
commit | a33cf7cd35bb9735823fa1276617c38edbd8b385 (patch) | |
tree | 239f31538c261643345477541dc2b0260b0ac3d4 /ACE/tests/Process_Test.cpp | |
parent | 61a1fbae63918fc59b7d9f2e5b6a902975877078 (diff) | |
download | ATCD-a33cf7cd35bb9735823fa1276617c38edbd8b385.tar.gz |
Merge pull request #1907 from lukem/format-security
Fix -Wformat-security issues
(cherry picked from commit 0b7e12778ae92315cbd51c901cb8402d6bd646a7)
# Conflicts:
# ACE/websvcs/lib/URL_Addr.cpp
Diffstat (limited to 'ACE/tests/Process_Test.cpp')
-rw-r--r-- | ACE/tests/Process_Test.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/ACE/tests/Process_Test.cpp b/ACE/tests/Process_Test.cpp index 328702994b5..444f879ab1d 100644 --- a/ACE/tests/Process_Test.cpp +++ b/ACE/tests/Process_Test.cpp @@ -34,13 +34,7 @@ test_setenv (void) ACE_OS::strcat (bigval, ACE_TEXT ("01234567890123456789012345678901234567890123456789")); #ifndef ACE_LACKS_VA_FUNCTIONS -# if !defined (ACE_WIN32) && defined (ACE_USES_WCHAR) - const ACE_TCHAR *fmt = ACE_TEXT ("%ls"); -# else - const ACE_TCHAR *fmt = ACE_TEXT ("%s"); -# endif - - if (0 != opts.setenv (ACE_TEXT ("A"), fmt, bigval)) + if (0 != opts.setenv (ACE_TEXT ("A"), ACE_TEXT ("%") ACE_TEXT_PRIs, bigval)) { status = errno; ACE_ERROR ((LM_ERROR, ACE_TEXT ("%p\n"), ACE_TEXT ("setenv"))); |