summaryrefslogtreecommitdiff
path: root/ACE/tests
diff options
context:
space:
mode:
authorLuke Mewburn <Luke@Mewburn.net>2022-09-11 10:03:05 +1000
committerLuke Mewburn <Luke@Mewburn.net>2022-09-11 10:03:05 +1000
commit15e81d1fdd3aceba9199802a697782507ecc87f2 (patch)
tree507ad08f4ce7bfde9776d1cb85a828e4041e653a /ACE/tests
parent983dabc472d4670a53a352584cdc82de749e2c41 (diff)
downloadATCD-15e81d1fdd3aceba9199802a697782507ecc87f2.tar.gz
Fix -Wformat-security issues for ACE/tests
Fixes issue #1906.
Diffstat (limited to 'ACE/tests')
-rw-r--r--ACE/tests/Process_Manager_Test.cpp2
-rw-r--r--ACE/tests/Time_Service_Test.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/ACE/tests/Process_Manager_Test.cpp b/ACE/tests/Process_Manager_Test.cpp
index 02d89c320c4..ae1f5016572 100644
--- a/ACE/tests/Process_Manager_Test.cpp
+++ b/ACE/tests/Process_Manager_Test.cpp
@@ -241,7 +241,7 @@ command_line_test ()
ACE_Process_Options options (1, command_len + 1);
#ifndef ACE_LACKS_VA_FUNCTIONS
- options.command_line (command);
+ options.command_line (ACE_TEXT ("%") ACE_TEXT_PRIs, command);
#endif
ACE_TCHAR * const *procargv = options.command_line_argv ();
diff --git a/ACE/tests/Time_Service_Test.cpp b/ACE/tests/Time_Service_Test.cpp
index f8350526b36..295d784f5f9 100644
--- a/ACE/tests/Time_Service_Test.cpp
+++ b/ACE/tests/Time_Service_Test.cpp
@@ -65,7 +65,7 @@ run_main (int, ACE_TCHAR *[])
const ACE_TCHAR *server_cl = APPLICATION ACE_TEXT ("server.conf");
ACE_Process_Options server_options;
#ifndef ACE_LACKS_VA_FUNCTIONS
- server_options.command_line (server_cl);
+ server_options.command_line (ACE_TEXT ("%") ACE_TEXT_PRIs, server_cl);
#endif
ACE_Process server;
@@ -85,7 +85,7 @@ run_main (int, ACE_TCHAR *[])
const ACE_TCHAR *clerk_cl = APPLICATION ACE_TEXT ("clerk.conf");
ACE_Process_Options clerk_options;
#ifndef ACE_LACKS_VA_FUNCTIONS
- clerk_options.command_line (clerk_cl);
+ clerk_options.command_line (ACE_TEXT ("%") ACE_TEXT_PRIs, clerk_cl);
#endif
ACE_Process clerk;