Fix build warning 95/231095/8
authorhj kim <backto.kim@samsung.com>
Fri, 17 Apr 2020 07:09:38 +0000 (16:09 +0900)
committerhj kim <backto.kim@samsung.com>
Tue, 21 Apr 2020 07:40:34 +0000 (16:40 +0900)
Change-Id: I73c2ae9f0ea30c9adbd01f2a7fe0ebd365a695aa

packaging/libmm-camcorder.spec
src/Makefile.am
src/mm_camcorder_gstcommon.c

index 3cff0c9..2fb3628 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-camcorder
 Summary:    Camera and recorder library
-Version:    0.10.196
+Version:    0.10.197
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index 3808f77..01f6d46 100644 (file)
@@ -76,7 +76,7 @@ libmmfcamcorder_la_LIBADD = \
                            $(STORAGE_LIBS)
 
 libmmfcamcorder_la_CFLAGS += -D_FILE_OFFSET_BITS=64
-libmmfcamcorder_la_CFLAGS += -fdata-sections -ffunction-sections -Wl,--gc-sections
+libmmfcamcorder_la_CFLAGS += -fdata-sections -ffunction-sections -Wl,--gc-sections -Wall -Werror
 libmmfcamcorder_la_LDFLAGS = -Wl,--gc-sections
 libmmfcamcorder_la_LIBADD += $(SYSTEMINFO_LIBS)
 
index 048c2d7..cf25032 100644 (file)
@@ -2806,7 +2806,7 @@ bool _mmcamcorder_set_videosrc_caps(MMHandleType handle, unsigned int fourcc, in
                                NULL);
                } else {
                        char fourcc_string[sizeof(fourcc)+1];
-                       strncpy(fourcc_string, (char*)&fourcc, sizeof(fourcc));
+                       memcpy(fourcc_string, (char*)&fourcc, sizeof(fourcc));
                        fourcc_string[sizeof(fourcc)] = '\0';
                        caps = gst_caps_new_simple("video/x-raw",
                                "format", G_TYPE_STRING, fourcc_string,