int app_control_set_launch_mode(app_control_h app_control,
app_control_launch_mode_e mode)
{
- char launch_mode[LAUNCH_MODE_SIZE] = { 0, };
+ const char *launch_mode;
if (app_control_validate(app_control)) {
return app_control_error(APP_CONTROL_ERROR_INVALID_PARAMETER,
switch (mode) {
case APP_CONTROL_LAUNCH_MODE_SINGLE:
- strncpy(launch_mode, LAUNCH_MODE_SINGLE, strlen(LAUNCH_MODE_SINGLE));
+ launch_mode = LAUNCH_MODE_SINGLE;
break;
case APP_CONTROL_LAUNCH_MODE_GROUP:
- strncpy(launch_mode, LAUNCH_MODE_GROUP, strlen(LAUNCH_MODE_GROUP));
+ launch_mode = LAUNCH_MODE_GROUP;
break;
default:
return app_control_error(APP_CONTROL_ERROR_INVALID_PARAMETER,