diff options
author | Jiyoung Yun <jy910.yun@samsung.com> | 2016-12-27 16:46:08 +0900 |
---|---|---|
committer | Jiyoung Yun <jy910.yun@samsung.com> | 2016-12-27 16:46:08 +0900 |
commit | db20f3f1bb8595633a7e16c8900fd401a453a6b5 (patch) | |
tree | e5435159cd1bf0519276363a6fe1663d1721bed3 /src/pal/tests/palsuite/miscellaneous/SetEnvironmentVariableA/test3 | |
parent | 4b4aad7217d3292650e77eec2cf4c198ea9c3b4b (diff) | |
download | coreclr-db20f3f1bb8595633a7e16c8900fd401a453a6b5.tar.gz coreclr-db20f3f1bb8595633a7e16c8900fd401a453a6b5.tar.bz2 coreclr-db20f3f1bb8595633a7e16c8900fd401a453a6b5.zip |
Imported Upstream version 1.0.0.9127upstream/1.0.0.9127
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"); |