projects
/
platform
/
core
/
multimedia
/
libmedia-service.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
326aa4d
)
Fix wrong typecast from int to char without testing EOF
13/74213/2
accepted/tizen/common/20160615.193332
accepted/tizen/ivi/20160615.001714
accepted/tizen/mobile/20160615.001810
accepted/tizen/tv/20160615.001736
accepted/tizen/wearable/20160615.001750
submit/tizen/20160614.103947
author
Jiyong Min
<jiyong.min@samsung.com>
Mon, 13 Jun 2016 08:05:22 +0000
(17:05 +0900)
committer
Jiyong Min
<jiyong.min@samsung.com>
Tue, 14 Jun 2016 08:01:28 +0000
(
01:01
-0700)
Change-Id: Ic2ab06c24aa04cdf37bf13fed19e7b1293db5864
Signed-off-by: Jiyong Min <jiyong.min@samsung.com>
src/common/media-svc-util.c
patch
|
blob
|
history
diff --git
a/src/common/media-svc-util.c
b/src/common/media-svc-util.c
index
2be4dba
..
be58264
100755
(executable)
--- a/
src/common/media-svc-util.c
+++ b/
src/common/media-svc-util.c
@@
-1244,7
+1244,7
@@
int image_360_check(char *path)
char *xmp_data = 0;
int size1 = 0;
int size2 = 0;
-
char ch
;
+
int fdata = 0
;
int temp = 0;
fp = fopen(path, "rb");
@@
-1289,10
+1289,10
@@
int image_360_check(char *path)
ptr = xmp_data;
while (exif_app1_xmp_size >= 0) {
exif_app1_xmp_size--;
-
ch = (char)
fgetc(fp);
- if (
ch == '\0'
)
+
fdata =
fgetc(fp);
+ if (
fdata == EOF
)
continue;
- *ptr =
ch
;
+ *ptr =
(char)fdata
;
ptr++;
temp++;
}