static int __set_width(bundle *content_info, int w)
{
- char wbuf[6];
+ char wbuf[11];
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;
static int __set_height(bundle *content_info, int h)
{
- char hbuf[6];
+ char hbuf[11];
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;
EAPI int widget_instance_launch(const char *instance_id, char *content_info, int w, int h)
{
int ret = 0;
- char pid_buf[6];
+ char pid_buf[11];
bundle *b;
widget_instance_h instance;
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);
return 0;
}
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");
return 0;
}