Change the value for checking fread() to the number of items 42/199342/1 accepted/tizen_5.0_unified tizen_5.0 accepted/tizen/5.0/unified/20190220.071722 submit/tizen_5.0/20190219.010815
authorjiyong.min <jiyong.min@samsung.com>
Thu, 31 Jan 2019 23:08:42 +0000 (08:08 +0900)
committerJiyong Min <jiyong.min@samsung.com>
Sun, 10 Feb 2019 23:14:29 +0000 (23:14 +0000)
Change-Id: I95149c62b7be1b73990830bb0ffa7f10404e16de
(cherry picked from commit 6f5913629493ce5a2e7b5ea9fe59ce4662f43ea1)

src/metadata_editor.cpp

index 61034fdbc24e8a5bd69ca7a65249d328f150ccdb..92b73b43396b0ff69da79baede9473eb29a11ddd 100755 (executable)
@@ -781,7 +781,7 @@ int __metadata_editor_get_picture_info(const char *path, void **picture, int *si
                memset(picture_buffer, 0, file_size * sizeof(char));
                fin = fopen(path, "rb");
                if (fin) {
-                       if(file_size != fread(picture_buffer, file_size, 1, fin)) {
+                       if(file_size != fread(picture_buffer, 1, file_size, fin)) {
                                metadata_editor_error("fread error");
                                fclose(fin);
                                return METADATA_EDITOR_ERROR_OPERATION_FAILED;