From: Duyoung Jang Date: Sun, 21 Apr 2013 05:58:50 +0000 (+0900) Subject: Fix prevent issue X-Git-Tag: accepted/tizen_2.1/20130425.034740~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7c5617ff0d505feed6d3d6219c4f2282db98ce1f;p=platform%2Fframework%2Fnative%2Finstaller.git Fix prevent issue Change-Id: Icfd29898b107b41068a16e4f0d938c1416941e73 Signed-off-by: Duyoung Jang --- diff --git a/inc/InstallerDefs.h b/inc/InstallerDefs.h index 77d2d42..4ae369f 100755 --- a/inc/InstallerDefs.h +++ b/inc/InstallerDefs.h @@ -23,7 +23,7 @@ #include "InstallerUtil.h" -#define OSP_INSTALLER_VERSION "version=[20130419.1]" +#define OSP_INSTALLER_VERSION "version=[20130421.1]" #define DIR_BIN L"/bin" #define DIR_INFO L"/info" diff --git a/src/backend/backend.cpp b/src/backend/backend.cpp index 83ba9b7..bb0633f 100755 --- a/src/backend/backend.cpp +++ b/src/backend/backend.cpp @@ -62,17 +62,18 @@ main(int argc, char **argv) String buf; for (int i = 0; i < argc; i++) { - if (strlen(argv[i]) < 1024) + const char* pStr = argv[i]; + if (pStr) { - const char* pStr = argv[i]; - if (pStr) + AppLog(" # argv[%d] = [%s]", i, pStr); + + std::unique_ptr< String > pCmd(new (std::nothrow) String(pStr)); + TryReturn(pCmd, 0, "pCmd is null."); + + buf.Append(*pCmd.get()); + if (i != argc - 1) { - String cmd(pStr); - buf.Append(cmd); - if (i != argc - 1) - { - buf.Append(" "); - } + buf.Append(" "); } } }