diff options
author | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1996-12-11 11:02:03 +0000 |
---|---|---|
committer | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1996-12-11 11:02:03 +0000 |
commit | 8b7e39c0dfaef5a30d5adf40f6ed5568fd8b5d8a (patch) | |
tree | bae060d484f94e84f54afe1fe431cfbab2c3c01b /tests/Naming_Test.cpp | |
parent | 497284175ffc33d4da5f1b89a9a8284eaecb593d (diff) | |
download | ATCD-8b7e39c0dfaef5a30d5adf40f6ed5568fd8b5d8a.tar.gz |
*** empty log message ***
Diffstat (limited to 'tests/Naming_Test.cpp')
-rw-r--r-- | tests/Naming_Test.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/Naming_Test.cpp b/tests/Naming_Test.cpp index fcd948a2eb1..09d72e42cd8 100644 --- a/tests/Naming_Test.cpp +++ b/tests/Naming_Test.cpp @@ -127,10 +127,10 @@ main (int argc, char *argv[]) name_options->parse_args (argc, argv); - char temp_file [BUFSIZ]; + TCHAR temp_file [BUFSIZ]; ACE_OS::strcpy (temp_file, ACE::basename (name_options->process_name (), ACE_DIRECTORY_SEPARATOR_CHAR)); - ACE_OS::strcat (temp_file, "XXXXXX"); + ACE_OS::strcat (temp_file, __TEXT ("XXXXXX")); // Set the database name using mktemp to generate a unique file name name_options->database (ACE_OS::mktemp (temp_file)); @@ -153,10 +153,10 @@ main (int argc, char *argv[]) // No more bindings in database so find should return -1 find (ns_context, -1, -1); - ::sprintf (temp_file, "%s%s%s", - name_options->namespace_dir (), - ACE_DIRECTORY_SEPARATOR_STR, - name_options->database ()); + ACE_OS::sprintf (temp_file, __TEXT ("%s%s%s"), + name_options->namespace_dir (), + ACE_DIRECTORY_SEPARATOR_STR, + name_options->database ()); // Remove any existing files. No need to check return value here // since we don't care if the file doesn't exist. |