diff options
author | Kyungwook Tak <k.tak@samsung.com> | 2016-03-02 20:45:52 +0900 |
---|---|---|
committer | Kyungwook Tak <k.tak@samsung.com> | 2016-03-02 20:45:52 +0900 |
commit | 4ac21f065674dd7c1b11a0918953fc552ec9a924 (patch) | |
tree | a19255f75a1054ac48ea7a3cb5d4f2f275925fd9 /tests | |
parent | b4ea2b8348e45f355cdf1140b666f0897fc63644 (diff) | |
download | libwebappenc-4ac21f065674dd7c1b11a0918953fc552ec9a924.tar.gz libwebappenc-4ac21f065674dd7c1b11a0918953fc552ec9a924.tar.bz2 libwebappenc-4ac21f065674dd7c1b11a0918953fc552ec9a924.zip |
Use snprintf instead of sprintf to be safesubmit/tizen/20160303.045232accepted/tizen/wearable/20160305.090436accepted/tizen/tv/20160305.090421accepted/tizen/mobile/20160305.090405accepted/tizen/ivi/20160305.090455accepted/tizen/common/20160303.110357
Change-Id: I664d9f039b09b576c4ebe84c29d8a7c459bc1384
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/wae_tests.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/wae_tests.c b/tests/wae_tests.c index 631e9ea..0b584e5 100644 --- a/tests/wae_tests.c +++ b/tests/wae_tests.c @@ -430,7 +430,7 @@ int wae_tc_get_preloaded_app_dek_file_path() char path[256]; FPRINTF("...expected path : %s\n", expectedPath); - ret = _get_preloaded_app_dek_file_path(pkgId, path); + ret = _get_preloaded_app_dek_file_path(pkgId, sizeof(path), path); FPRINTF("...returned path : %s\n", path); if(ret != WAE_ERROR_NONE || strncmp(expectedPath, path, strlen(expectedPath)) != 0) { @@ -623,8 +623,8 @@ int wae_tc_load_preloaded_app_deks() char path2[MAX_PATH_LEN] = {0, }; FILE *f2 = NULL; - _get_preloaded_app_dek_file_path(pkgId1, path1); - _get_preloaded_app_dek_file_path(pkgId2, path2); + _get_preloaded_app_dek_file_path(pkgId1, sizeof(path1), path1); + _get_preloaded_app_dek_file_path(pkgId2, sizeof(path2), path2); // remove old test data remove_app_dek(pkgId1, WAE_PRELOADED_APP); |