diff options
Diffstat (limited to 'src/pal/tests/palsuite/miscellaneous/SetEnvironmentVariableA/test3')
-rw-r--r-- | src/pal/tests/palsuite/miscellaneous/SetEnvironmentVariableA/test3/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/pal/tests/palsuite/miscellaneous/SetEnvironmentVariableA/test3/test3.cpp (renamed from src/pal/tests/palsuite/miscellaneous/SetEnvironmentVariableA/test3/test3.c) | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/pal/tests/palsuite/miscellaneous/SetEnvironmentVariableA/test3/CMakeLists.txt b/src/pal/tests/palsuite/miscellaneous/SetEnvironmentVariableA/test3/CMakeLists.txt index 159f574abe..98c9dc0a63 100644 --- a/src/pal/tests/palsuite/miscellaneous/SetEnvironmentVariableA/test3/CMakeLists.txt +++ b/src/pal/tests/palsuite/miscellaneous/SetEnvironmentVariableA/test3/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test3.c + test3.cpp ) add_executable(paltest_setenvironmentvariablea_test3 diff --git a/src/pal/tests/palsuite/miscellaneous/SetEnvironmentVariableA/test3/test3.c b/src/pal/tests/palsuite/miscellaneous/SetEnvironmentVariableA/test3/test3.cpp index fa24275da7..539e33004b 100644 --- a/src/pal/tests/palsuite/miscellaneous/SetEnvironmentVariableA/test3/test3.c +++ b/src/pal/tests/palsuite/miscellaneous/SetEnvironmentVariableA/test3/test3.cpp @@ -76,7 +76,7 @@ int __cdecl main(int argc, char *argv[]) /* increase size to account for the null char at the end */ size = size + 1; - pResultBuffer = malloc(sizeof(char)*size); + pResultBuffer = (char*)malloc(sizeof(char)*size); if ( pResultBuffer == NULL ) { Fail("ERROR: Failed to allocate memory for pResultBuffer pointer.\n"); @@ -107,7 +107,7 @@ int __cdecl main(int argc, char *argv[]) free(pResultBuffer); /* Reallocate the memory for the string */ - pResultBuffer = malloc(sizeof(char)*size); + pResultBuffer = (char*)malloc(sizeof(char)*size); if ( pResultBuffer == NULL ) { Fail("ERROR: Failed to allocate memory for pResultBuffer pointer.\n"); |