summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/ipptest/fimc-ipp_v2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ipptest/fimc-ipp_v2.c b/tests/ipptest/fimc-ipp_v2.c
index eb6b7205..0ecdd089 100644
--- a/tests/ipptest/fimc-ipp_v2.c
+++ b/tests/ipptest/fimc-ipp_v2.c
@@ -176,7 +176,7 @@ void fimc_v2_m2m_set_mode(struct device *dev, struct connector *c, int count,
switch (display) {
case IPP_CMD_M2M_FILE:
/* For src image write file */
- sprintf(filename, RESULT_PATH "fimc_m2m_org_src.bmp");
+ snprintf(filename, sizeof(filename), RESULT_PATH "fimc_m2m_org_src.bmp");
util_write_bmp(filename, usr_addr1[0],
src_sz.hsize, src_sz.vsize);
@@ -193,7 +193,7 @@ void fimc_v2_m2m_set_mode(struct device *dev, struct connector *c, int count,
usec[j] = (end.tv_sec - begin.tv_sec) * 1000000 +
(end.tv_usec - begin.tv_usec);
- sprintf(filename, RESULT_PATH "fimc_m2m_dst%d.bmp", j);
+ snprintf(filename, sizeof(filename), RESULT_PATH "fimc_m2m_dst%d.bmp", j);
util_write_bmp(filename, usr_addr2[0], def_sz.hsize, def_sz.vsize);
}
break;