Lines 96-103
Link Here
|
96 |
} |
96 |
} |
97 |
if (i == 1) { |
97 |
if (i == 1) { |
98 |
/* Normal path. Add file:/ to the start */ |
98 |
/* Normal path. Add file:/ to the start */ |
99 |
new_url = (char *) malloc (sizeof(char) * (strlen (input) + 7)); |
99 |
new_url = (char *) malloc (sizeof(char) * (strlen (input) + 8)); |
100 |
sprintf (new_url, "file:/%s", input); |
100 |
sprintf (new_url, "file://%s", input); |
101 |
} else { |
101 |
} else { |
102 |
/* Don't know what to do. Just copy and append file: to it */ |
102 |
/* Don't know what to do. Just copy and append file: to it */ |
103 |
new_url = (char *) malloc (sizeof(char) * (strlen(input) + 6)); |
103 |
new_url = (char *) malloc (sizeof(char) * (strlen(input) + 6)); |