fix svace issue 75/78675/1 accepted/tizen/common/20160706.142817 accepted/tizen/ivi/20160706.132925 accepted/tizen/mobile/20160706.132522 accepted/tizen/tv/20160706.132510 accepted/tizen/wearable/20160706.132548 submit/tizen/20160706.112247
authorAnatolii Nikulin <nikulin.a@samsung.com>
Wed, 6 Jul 2016 11:29:36 +0000 (14:29 +0300)
committerAnatolii Nikulin <nikulin.a@samsung.com>
Wed, 6 Jul 2016 11:31:16 +0000 (14:31 +0300)
Change-Id: I80318f70ccf55403ef9eb7c73e41f1d02cf5c300
Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
ui_viewer/ui_viewer_screenshot.c

index a8719c0..64598bf 100644 (file)
@@ -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;