Change-Id: I97500ba53de09e83905e0fbc385e631cdcac28c4
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
#define MAX_QUERY_LEN 4096
#define BUFSIZE 4096
#define OWNER_ROOT 0
+#define MAX_INTEGER_LENGTH 10
#define LDPI "ldpi"
#define MDPI "mdpi"
int temp_pkg_mode = 0;
int temp_app_mode = 0;
- char pkg_mode[10] = {'\0'};
+ char pkg_mode[MAX_INTEGER_LENGTH] = {'\0'};
application_x *up_support_mode = NULL;
GList *list_up = NULL;
}
list_up = list_up->next;
}
- sprintf(pkg_mode, "%d", temp_pkg_mode);
+ snprintf(pkg_mode, MAX_INTEGER_LENGTH, "%d", temp_pkg_mode);
if(mfx->support_mode)
free((void *)mfx->support_mode);