SET(CLIENTLIB "callmgr")
SET(MODULE_RES_DIR "${PREFIX}/share/call-manager")
-##Address-Space Layout Randomization
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIE")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIE -Wno-cast-function-type")
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pie")
ADD_DEFINITIONS("-DFEATURE_DLOG_DEBUG")
* limitations under the License.
*/
+#include <stdlib.h>
#include <glib.h>
#include <player.h>
* limitations under the License.
*/
+#include <stdlib.h>
#include <sound_manager.h>
#include <sound_manager_internal.h>
#include <vconf.h>
char current_num[83] = { 0, };
char *str_id = NULL;
char *disp_img_path = NULL;
- char disp_name_str[300] = { 0, };
+ char disp_name_str[32] = { 0, };
notification_h noti = NULL;
notification_error_e noti_err = NOTIFICATION_ERROR_NONE;
app_control_h service = NULL;
if (strstr(disp_name_str, disp_str) == NULL) {
if (strlen(disp_name_str) > 0) {
- char buf[32];
- snprintf(buf, 32, "%s,%s", disp_name_str, disp_str);
+ char buf[sizeof(disp_name_str) + 1];
+ strncat(buf, disp_name_str, sizeof(buf) - 1);
+ strncat(buf, ",", sizeof(buf) - strlen(buf) - 1);
+ strncat(buf, disp_str, sizeof(buf) - strlen(buf) - 1);
strncpy(disp_name_str, buf, 32);
+ disp_name_str[31] = '\0';
b_is_single = false;
} else {
strncpy(disp_name_str, disp_str, 32);
+ disp_name_str[31] = '\0';
}
sec_dbg("disp_str(%s), disp_name_str(%s)", disp_str, disp_name_str);
* limitations under the License.
*/
+#include <stdlib.h>
+
#include "callmgr-cooldown.h"
#include "callmgr-util.h"
#include "callmgr-log.h"
* limitations under the License.
*/
-#include <vconf.h>
-#include <dbus/dbus.h>
+#include <stdlib.h>
#include <stdint.h>
+#include <dbus/dbus.h>
+#include <vconf.h>
#include <gesture_recognition.h>
#include "callmgr-sensor.h"
{
unsigned long rec_size = 0;
int fex_remain_size = 0;
- char tmp_str[CM_VR_FILENAME_LEN_MAX];
+ char tmp_str[CM_VR_FILENAME_LEN_MAX * 2 + 1];
dbg(">>");
sec_dbg("Voice Recorder File Path: [%s]", vr_handle->file_path);
sec_dbg("Voice Recorder File Name: [%s]", vr_handle->file_name);
- char dest_path[CM_VR_FILENAME_LEN_MAX] = { 0, };
+ char dest_path[CM_VR_FILENAME_LEN_MAX * 2 + 1] = { 0, };
snprintf(dest_path, sizeof(dest_path), "%s/%s", vr_handle->file_path, vr_handle->file_name);
int ret = rename(CM_VR_TEMP_FILENAME, dest_path);
int result = -1;
media_info_h info = NULL;
int ret = MEDIA_CONTENT_ERROR_NONE;
- char full_path[CM_VR_FILENAME_LEN_MAX] = { 0, };
+ char full_path[CM_VR_FILENAME_LEN_MAX * 2 + 1] = { 0, };
snprintf(full_path, sizeof(full_path), "%s/%s", vr_handle->file_path, vr_handle->file_name);
sec_dbg("full path : %s", full_path);
int result = 0;
media_info_h info = NULL;
int ret = MEDIA_CONTENT_ERROR_NONE;
- char full_path[CM_VR_FILENAME_LEN_MAX] = { 0, };
+ char full_path[CM_VR_FILENAME_LEN_MAX * 2 + 1] = { 0, };
snprintf(full_path, sizeof(full_path), "%s/%s", vr_handle->file_path, vr_handle->file_name);
dbg("full path : %s", full_path);