Fix bug 57/127357/1
authorWonnam Jang <wn.jang@samsung.com>
Thu, 27 Apr 2017 05:19:46 +0000 (14:19 +0900)
committerWonnam Jang <wn.jang@samsung.com>
Thu, 27 Apr 2017 05:19:46 +0000 (14:19 +0900)
Change-Id: Id7e51b54f188abf87734575a162817a434b8df98
Signed-off-by: Wonnam Jang <wn.jang@samsung.com>
server/vcd_recorder.c

index 5ba69d6..3b33e95 100644 (file)
@@ -143,7 +143,7 @@ static void _bt_cb_hid_state_changed(int result, bool connected, const char *rem
 
 static void _bt_hid_audio_data_receive_cb(bt_hid_voice_data_s *voice_data, void *user_data)
 {
-       if (0 != strncmp(g_current_audio_type, VCP_AUDIO_ID_BLUETOOTH, sizeof(VCP_AUDIO_ID_BLUETOOTH))) {
+       if (0 != strncmp(g_current_audio_type, VCP_AUDIO_ID_BLUETOOTH, strlen(VCP_AUDIO_ID_BLUETOOTH))) {
                SLOG(LOG_ERROR, TAG_VCD, "[Recorder ERROR] current audio type is (%s)", g_current_audio_type);
                return;
        }