summaryrefslogtreecommitdiff
path: root/ACE/tests/Naming_Test.cpp
diff options
context:
space:
mode:
authorAdam Mitz <mitza@objectcomputing.com>2022-09-22 17:58:28 -0500
committerAdam Mitz <mitza@objectcomputing.com>2022-10-03 13:20:45 -0500
commita33cf7cd35bb9735823fa1276617c38edbd8b385 (patch)
tree239f31538c261643345477541dc2b0260b0ac3d4 /ACE/tests/Naming_Test.cpp
parent61a1fbae63918fc59b7d9f2e5b6a902975877078 (diff)
downloadATCD-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/Naming_Test.cpp')
-rw-r--r--ACE/tests/Naming_Test.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/ACE/tests/Naming_Test.cpp b/ACE/tests/Naming_Test.cpp
index 42a825ed381..c171a74aa70 100644
--- a/ACE/tests/Naming_Test.cpp
+++ b/ACE/tests/Naming_Test.cpp
@@ -259,11 +259,7 @@ run_main (int argc, ACE_TCHAR *argv[])
}
// Set the database name using the pid. mktemp isn't always available.
ACE_OS::snprintf(temp_file, BUFSIZ,
-#if !defined (ACE_WIN32) && defined (ACE_USES_WCHAR)
- ACE_TEXT ("%ls%d"),
-#else
- ACE_TEXT ("%s%d"),
-#endif
+ ACE_TEXT ("%") ACE_TEXT_PRIs ACE_TEXT ("%d"),
pname,
(int)(ACE_OS::getpid ()));