summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/recorder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/recorder.c b/src/recorder.c
index 1f315cd..e240071 100644
--- a/src/recorder.c
+++ b/src/recorder.c
@@ -888,7 +888,7 @@ static void *_recorder_msg_handler_func(gpointer data)
rec_idle_event->event = rec_msg->event;
rec_idle_event->cb_info = cb_info;
- strncpy(rec_idle_event->recv_msg, rec_msg->recv_msg, sizeof(rec_idle_event->recv_msg) - 1);
+ strncpy(rec_idle_event->recv_msg, rec_msg->recv_msg, sizeof(rec_idle_event->recv_msg));
/*LOGD("add recorder event[%d, %p] to IDLE", rec_msg->event, rec_idle_event);*/
@@ -1355,7 +1355,7 @@ static void _recorder_client_callback_destroy(recorder_cb_info_s *cb_info)
}
-static int _recorder_storage_device_supported_cb(int storage_id, storage_type_e type, storage_state_e state, const char *path, void *user_data)
+static bool _recorder_storage_device_supported_cb(int storage_id, storage_type_e type, storage_state_e state, const char *path, void *user_data)
{
char **root_directory = (char **)user_data;