$(SMACK_CFLAGS) \
$(USB_DEVICE_CFLAGS) \
$(PHONESTATUS_CFLAGS) \
- $(SYSTEM_DEVICE_CFLAGS)
+ $(SYSTEM_DEVICE_CFLAGS) \
+ -Wall -Werror -Wno-deprecated -Wno-deprecated-declarations -Wno-cpp
COMMON_LDADD = libmedia-utils.la \
$(GLIB_LIBS) \
$(CYNARA_CLIENT_CFLAGS) \
$(CYNARA_SESSION_CFLAGS) \
$(CYNARA_CREDS_SOCKET_CFLAGS) \
- $(SYSTEM_INFO_CFLAGS)
+ $(SYSTEM_INFO_CFLAGS) \
+ -Wall -Werror -Wno-deprecated -Wno-deprecated-declarations -Wno-cpp
libmedia_utils_la_LIBADD = $(GLIB_LIBS) \
$(DLOG_LIBS) \
$(GTHREAD_CFLAGS) \
$(SQLITE3_CFLAGS) \
$(GLIB_CFLAGS) \
- $(GIO_CFLAGS)
+ $(GIO_CFLAGS) \
+ -Wall -Werror -Wno-deprecated -Wno-deprecated-declarations -Wno-cpp
mediadb_update_CFLAGS += -fPIE
len = strlen(argv1);
if (len < sizeof(req_path)) {
if (argv1[len - 1] == '/')
- strncpy(req_path, argv1, len - 1);
+ g_strlcpy(req_path, argv1, len - 1);
else
- strncpy(req_path, argv1, len);
+ g_strlcpy(req_path, argv1, len);
}
ret = dir_scan(req_path, false);
if (ret != 0) {
len = strlen(argv2);
if (len < sizeof(req_path)) {
if (argv2[len - 1] == '/')
- strncpy(req_path, argv2, len - 1);
+ g_strlcpy(req_path, argv2, len - 1);
else
- strncpy(req_path, argv2, len);
+ g_strlcpy(req_path, argv2, len);
}
ret = dir_scan(req_path, true);