From: Cho Woong Suk Date: Thu, 2 Nov 2017 10:10:41 +0000 (+0900) Subject: big-fix: add reference dll for NI X-Git-Tag: accepted/tizen/4.0/unified/20171103.030300^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=195453317830e9b517950a6153e078f91f1e7500;p=platform%2Fcore%2Fdotnet%2Flauncher.git big-fix: add reference dll for NI Change-Id: Ia974ecd5469ff152204f6cf7c8adaa693b488088 --- diff --git a/NativeLauncher/installer-plugin/common.cc b/NativeLauncher/installer-plugin/common.cc index 4d5feeb..f84e79c 100644 --- a/NativeLauncher/installer-plugin/common.cc +++ b/NativeLauncher/installer-plugin/common.cc @@ -133,12 +133,12 @@ static void crossgen(const char* dllPath, const char* appPath) // get reference API directory ([DEVICE_API_DIR]/ref) int len = strlen(__DEVICE_API_DIR); - char* refAPIDir = (char*)calloc(len + 4, 1); + char* refAPIDir = (char*)calloc(len + 5, 1); if (!refAPIDir) { printf("fail to allocate memory for reference API directory\n"); return; } - snprintf(refAPIDir, len + 4, "%s%s", __DEVICE_API_DIR, "/ref"); + snprintf(refAPIDir, len + 5, "%s%s", __DEVICE_API_DIR, "/ref"); tpaDir.push_back(refAPIDir); std::string tpa;