Fix sonarCube issue - Arithmatic operation on void pointer 66/145866/1
authorJeongmo Yang <jm80.yang@samsung.com>
Thu, 24 Aug 2017 06:01:21 +0000 (15:01 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Thu, 24 Aug 2017 06:01:21 +0000 (15:01 +0900)
[Version] 0.10.131
[Profile] Common
[Issue Type] Bug fix
[Dependency module] N/A

Change-Id: Ic51a24c5f661160ee10de0256bc7ce935d13e361
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
packaging/libmm-camcorder.spec
src/include/mm_camcorder_exifinfo.h
src/mm_camcorder_exifinfo.c

index 41ea26f..167cd9a 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-camcorder
 Summary:    Camera and recorder library
-Version:    0.10.130
+Version:    0.10.131
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index 8db85e1..22a71d7 100644 (file)
@@ -122,7 +122,7 @@ int mm_exif_add_thumbnail_info(mm_exif_info_t *info, void *thumbnail,
  * @return return int.
  */
 int mm_exif_write_exif_jpeg_to_memory(void **mem, unsigned int *length,
-                                     mm_exif_info_t *info, void *jpeg,
+                                     mm_exif_info_t *info, unsigned char *jpeg,
                                      unsigned int jpeg_len);
 
 /**
index 3f974ac..4c66a3b 100644 (file)
@@ -406,7 +406,7 @@ exit:
 
 
 int
-mm_exif_write_exif_jpeg_to_memory(void **mem, unsigned int *length, mm_exif_info_t *info,  void *jpeg, unsigned int jpeg_len)
+mm_exif_write_exif_jpeg_to_memory(void **mem, unsigned int *length, mm_exif_info_t *info,  unsigned char *jpeg, unsigned int jpeg_len)
 {
        unsigned short head[2] = {0,};
        unsigned short head_len = 0;