projects
/
platform
/
core
/
api
/
metadata-editor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f97a101
)
Change the value for checking fread() to the number of items
06/199006/2
accepted/tizen/unified/20190207.120246
submit/tizen/20190131.041045
author
jiyong.min
<jiyong.min@samsung.com>
Thu, 31 Jan 2019 23:08:42 +0000
(08:08 +0900)
committer
jiyong.min
<jiyong.min@samsung.com>
Thu, 31 Jan 2019 23:26:10 +0000
(08:26 +0900)
Change-Id: I95149c62b7be1b73990830bb0ffa7f10404e16de
src/metadata_editor.cpp
patch
|
blob
|
history
diff --git
a/src/metadata_editor.cpp
b/src/metadata_editor.cpp
index
61034fd
..
92b73b4
100755
(executable)
--- a/
src/metadata_editor.cpp
+++ b/
src/metadata_editor.cpp
@@
-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;