/*
* WiFi-Direct UG
*
-* Copyright 2012 Samsung Electronics Co., Ltd
+* Copyright 2012 Samsung Electronics Co., Ltd
-* Licensed under the Flora License, Version 1.0 (the "License");
+* Licensed under the Flora License, Version 1.1 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
res = notification_set_execute_option(ad->noti, NOTIFICATION_EXECUTE_TYPE_SINGLE_LAUNCH, /*Button Text*/NULL, NULL, b);
if (res != NOTIFICATION_ERROR_NONE) {
WDPOP_LOGD( "Failed to notification_set_execute_option. [%d]", res);
+ bundle_free(b);
return;
}
-
bundle_free(b);
/* set display application list */
res = notification_set_execute_option(ad->noti, NOTIFICATION_EXECUTE_TYPE_SINGLE_LAUNCH, /*Button Text*/NULL, NULL, b);
if (res != NOTIFICATION_ERROR_NONE) {
WDPOP_LOGD( "Failed to notification_set_execute_option. [%d]", res);
+ bundle_free(b);
return;
}
-
bundle_free(b);
/* set display application list */
if (NULL != peer->mac_address) {
WDPOP_LOGD( "discovered peer mac[%s]\n", peer->mac_address);
strncpy(ad->discovered_peers[ad->discovered_peer_count].mac_address, peer->mac_address, 18);
+ ad->discovered_peers[ad->discovered_peer_count].mac_address[17] = '\0';
} else {
WDPOP_LOGD( "peer's mac is NULL\n");
}
}
strncpy(ad->pin_number, pin, 64);
+ ad->pin_number[63] = '\0';
free(pin);
pin = NULL;
}
__WDPOP_LOG_FUNC_EXIT__;
-
- if (ret == WIFI_DIRECT_ERROR_NONE) {
- return TRUE;
- } else {
- return FALSE;
- }
+ return TRUE;
}
/**