summaryrefslogtreecommitdiff
path: root/tests/Mem_Map_Test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Mem_Map_Test.cpp')
-rw-r--r--tests/Mem_Map_Test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/Mem_Map_Test.cpp b/tests/Mem_Map_Test.cpp
index fa9078bc608..3ad9cc12a97 100644
--- a/tests/Mem_Map_Test.cpp
+++ b/tests/Mem_Map_Test.cpp
@@ -57,8 +57,8 @@ create_test_file (int size, int num_lines)
char *mybuf;
ACE_NEW_RETURN (mybuf, char[size + 1], -1);
- char c = 'a';
- char d = c;
+ char *c = ACE_ALPHABET;
+ char *d = c;
ACE_HANDLE file_handle = ACE_OS::open (ACE_DEFAULT_TEST_FILE,
O_RDWR | O_CREAT | O_TRUNC,
@@ -71,7 +71,7 @@ create_test_file (int size, int num_lines)
{
for (int i = 0; i < size; i++)
{
- mybuf[i] = c;
+ mybuf[i] = *c;
c++;
}