From ad70d3d5f87172f35f4fd8dc14ce0f979597e44c Mon Sep 17 00:00:00 2001 From: HyoEun Ahn Date: Tue, 21 Nov 2017 09:25:32 +0900 Subject: [PATCH] fix g_snprintf error Change-Id: I9aff2bedfad695368c1ab4041204627e33106b80 Signed-off-by: HyoEun Ahn --- src/common/file-system/mf-file-attr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/file-system/mf-file-attr.c b/src/common/file-system/mf-file-attr.c index dfe8168..f0276b4 100644 --- a/src/common/file-system/mf-file-attr.c +++ b/src/common/file-system/mf-file-attr.c @@ -1171,7 +1171,7 @@ int mf_file_attr_get_file_icon(const char *file_path, int *error_code, tmp_data.file_path = file_path; tmp_data.media = media_info; char condition[4096]; - g_snprintf("%s and MEDIA_PATH=\"%s\"", + g_snprintf(condition, 4096, "%s and MEDIA_PATH=\"%s\"", MF_CONDITION_IMAGE_VIDEO, tmp_data.file_path); err = -- 2.7.4