typedef struct tag_captureimginfo
{
- char filename[64];
+ char filename[128];
Evas_Object *eo;
char *imgdata;
} captureimginfo_t;
imgpath = malloc(strlen(capimginfo->filename)+strlen("file://")+2);
snprintf(imgpath, strlen(capimginfo->filename)+strlen("file://")+1,
"%s%s", "file://", capimginfo->filename);
- DTRACE("add to image history = %s\n", imgpath);
- clipdrawer_add_image_item(imgpath);
+ DTRACE("add to image history = %s\n", imgpath+strlen("file://"));
+ clipdrawer_add_image_item(imgpath+strlen("file://"));
free(imgpath);
evas_object_del(capimginfo->eo);
1. does the file exist?
2. dose the file wanted type? */
if (!strncmp(unesc, "file://", 7) &&
- (strstr(unesc,".png") || strstr(unesc,".jpg")) &&
+ (strcasestr(unesc,".png") || strcasestr(unesc,".jpg") || strcasestr(unesc,".bmp")) &&
check_regular_file(unesc+7))
{
DTRACE("clipdrawer add path = %s\n", unesc+7);