Change-Id: I9f4c22f4186108ac37738d25d633d2fd88565610
Signed-off-by: hyunho <hhstark.kang@samsung.com>
static int __set_width(bundle *content_info, int w)
{
static int __set_width(bundle *content_info, int w)
{
if (content_info == NULL || w < 0)
return -1;
if (content_info == NULL || w < 0)
return -1;
- snprintf(wbuf, 6, "%d", w);
+ snprintf(wbuf, 11, "%d", w);
bundle_add_str(content_info, WIDGET_K_WIDTH, wbuf);
return 0;
bundle_add_str(content_info, WIDGET_K_WIDTH, wbuf);
return 0;
static int __set_height(bundle *content_info, int h)
{
static int __set_height(bundle *content_info, int h)
{
if (content_info == NULL || h < 0)
return -1;
if (content_info == NULL || h < 0)
return -1;
- snprintf(hbuf, 6, "%d", h);
+ snprintf(hbuf, 11, "%d", h);
bundle_add_str(content_info, WIDGET_K_HEIGHT, hbuf);
return 0;
bundle_add_str(content_info, WIDGET_K_HEIGHT, hbuf);
return 0;
EAPI int widget_instance_launch(const char *instance_id, char *content_info, int w, int h)
{
int ret = 0;
EAPI int widget_instance_launch(const char *instance_id, char *content_info, int w, int h)
{
int ret = 0;
bundle *b;
widget_instance_h instance;
bundle *b;
widget_instance_h instance;
struct _widget_instance *instance;
if (instance_id == NULL) {
struct _widget_instance *instance;
if (instance_id == NULL) {
- _E("undefined class or instance %s of %s", instance_id, widget_id);
+ _E("undefined class or instance of %s", widget_id);
bundle_get_byte(envelope, AUL_K_WIDGET_STATUS, (void **)&status, &status_sz);
if (widget_id == NULL) {
bundle_get_byte(envelope, AUL_K_WIDGET_STATUS, (void **)&status, &status_sz);
if (widget_id == NULL) {
- LOGE("undefined widget_id %s", widget_id);
+ LOGE("undefined widget_id");