alarm-manager : To fix bundle_decode error in _send_alarm_get_appsvc_info func. 50/43350/3 accepted/tizen/mobile/20150709.001758 accepted/tizen/tv/20150709.001818 accepted/tizen/wearable/20150709.001824 submit/tizen/20150708.125442
authorMyungki Lee <mk5004.lee@samsung.com>
Wed, 8 Jul 2015 10:46:03 +0000 (19:46 +0900)
committerMyungki Lee <mk5004.lee@samsung.com>
Wed, 8 Jul 2015 10:46:03 +0000 (19:46 +0900)
Change-Id: I1132a8f3ddce9827501aa99f6691162fffd94be1
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
src/alarm-lib-stub.c

index e51aae2..8ab370b 100644 (file)
@@ -214,7 +214,6 @@ bundle *_send_alarm_get_appsvc_info(alarm_context_t context, alarm_id_t alarm_id
        int return_code = 0;
        bundle *b = NULL;
        gchar *b_data = NULL;
-       int len = 0;
 
        if (!alarm_manager_call_alarm_get_appsvc_info_sync
            ((AlarmManager*)context.proxy, alarm_id, &b_data, &return_code, NULL, &error)) {
@@ -238,7 +237,7 @@ bundle *_send_alarm_get_appsvc_info(alarm_context_t context, alarm_id_t alarm_id
                        *error_code = return_code;
                }
        } else {
-               b = bundle_decode((bundle_raw *)b_data, len);
+               b = bundle_decode((bundle_raw *)b_data, strlen(b_data));
        }
 
        if (b_data) {