From 24cca0b60d62b9ca7f850daef6094df02b4aae8f Mon Sep 17 00:00:00 2001 From: Anatolii Nikulin Date: Wed, 6 Jul 2016 14:29:36 +0300 Subject: [PATCH] fix svace issue Change-Id: I80318f70ccf55403ef9eb7c73e41f1d02cf5c300 Signed-off-by: Anatolii Nikulin --- ui_viewer/ui_viewer_screenshot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.7.4