From: Anatolii Nikulin Date: Wed, 6 Jul 2016 11:29:36 +0000 (+0300) Subject: fix svace issue X-Git-Tag: accepted/tizen/common/20160706.142817^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=24cca0b60d62b9ca7f850daef6094df02b4aae8f;p=platform%2Fcore%2Fsystem%2Fswap-manager.git fix svace issue Change-Id: I80318f70ccf55403ef9eb7c73e41f1d02cf5c300 Signed-off-by: Anatolii Nikulin --- diff --git a/ui_viewer/ui_viewer_screenshot.c b/ui_viewer/ui_viewer_screenshot.c index a8719c0..64598bf 100644 --- a/ui_viewer/ui_viewer_screenshot.c +++ b/ui_viewer/ui_viewer_screenshot.c @@ -405,7 +405,7 @@ finish: screenshotIndex); if (evas_object_image_save(img, dstpath, NULL, "compress=5") != 0) { - strcpy(screenshot_path, dstpath); + strncpy(screenshot_path, dstpath, MAX_PATH_LENGTH); } else { ui_viewer_log("ERROR: capture_object : can't save image\n"); ret = -1;