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/RW_Process_Mutex_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/RW_Process_Mutex_Test.cpp')
-rw-r--r-- | ACE/tests/RW_Process_Mutex_Test.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/ACE/tests/RW_Process_Mutex_Test.cpp b/ACE/tests/RW_Process_Mutex_Test.cpp index 7c84597df70..960bdae1468 100644 --- a/ACE/tests/RW_Process_Mutex_Test.cpp +++ b/ACE/tests/RW_Process_Mutex_Test.cpp @@ -431,11 +431,6 @@ run_main (int argc, ACE_TCHAR *argv[]) mutex_name.c_str (), ACE_TEXT ("ctor"))); } -#if !defined (ACE_WIN32) && defined (ACE_USES_WCHAR) - static const ACE_TCHAR* format = ACE_TEXT ("%ls -c %d -p %u -n %ls"); -#else - static const ACE_TCHAR* format = ACE_TEXT ("%s -c %d -p %u -n %s"); -#endif /* !ACE_WIN32 && ACE_USES_WCHAR */ // The parent process reads time ranges sent from the children via // UDP. Grab an unused UDP port to tell the children to send to. @@ -462,13 +457,12 @@ run_main (int argc, ACE_TCHAR *argv[]) Child *child = (i == 0 ? &writer : &readers[i-1]); ACE_Process_Options options; #ifndef ACE_LACKS_VA_FUNCTIONS - options.command_line (format, + options.command_line (ACE_TEXT ("%") ACE_TEXT_PRIs + ACE_TEXT (" -c %d -p %u -n %") ACE_TEXT_PRIs, argc > 0 ? argv[0] : ACE_TEXT ("RW_Process_Mutex_Test"), i, (unsigned int)me.get_port_number (), mutex_name.c_str ()); -#else - ACE_UNUSED_ARG (format); #endif if (child->spawn (options) == -1) { |