p = (char *)data->data;
if (!p) return EINA_TRUE;
cnp_debug("Got %s\n", p);
- if (strncmp(p, "file://", 7))
+ if (strncmp(p, "file:/", 6))
{
if (*p != '/') return EINA_FALSE;
}
for (i = 0; i < files->num_files ; i++)
{
p = files->files[i];
- if ((strncmp(p, "file://", 7)) && (p[0] != '/')) continue;
+ if ((strncmp(p, "file:/", 6)) && (p[0] != '/')) continue;
len += strlen(files->files[i]) + 1;
}
p = NULL;
for (i = 0; i < files->num_files ; i++)
{
p = files->files[i];
- if (!strncmp(p, "file://", 7)) p += 7;
+ if (!strncmp(p, "file:/", 6)) p += 5;
else if (p[0] != '/') continue;
len = strlen(p);
strcpy(s, p);
else
{
p = (char *)data->data;
- if ((!strncmp(p, "file://", 7)) || (p[0] == '/'))
+ if ((!strncmp(p, "file:/", 6)) || (p[0] == '/'))
{
int len = data->length;
- if (!strncmp(p, "file://", 7))
+ if (!strncmp(p, "file:/", 6))
{
- p += 7;
- len -= 7;
+ p += 5;
+ len -= 5;
}
stripstr = malloc(len + 1);
if (!stripstr) return 0;
drop = _wl_dropable_find_geom(win, savedtypes.x, savedtypes.y);
p = data;
- if ((!strncmp(p, "file://", 7)) || (p[0] == '/'))
+ if ((!strncmp(p, "file:/", 6)) || (p[0] == '/'))
{
int len = 0;
len = sel->buflen;
- if (!strncmp(p, "file://", 7))
+ if (!strncmp(p, "file:/", 6))
{
- p += 7;
- len -= 7;
+ p += 5;
+ len -= 5;
}
if (!(s = malloc(len + 1))) return;
memcpy(s, p, len);