Skip to content

Commit

Permalink
fixed cache system for percentage encoded file in single-file mode
Browse files Browse the repository at this point in the history
  • Loading branch information
fangfufu committed May 5, 2024
1 parent 28293b5 commit 2fa2bb9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/link.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,8 @@ static void LinkTable_uninitialised_fill(LinkTable *linktbl)
*/
static LinkTable *single_LinkTable_new(const char *url)
{
char *ptr = strrchr(url, '/') + 1;
char *orig_ptr = strrchr(url, '/') + 1;
char *ptr = curl_easy_unescape(NULL, orig_ptr, 0, NULL);
LinkTable *linktbl = LinkTable_alloc(url);
Link *link = Link_new(ptr, LINK_UNINITIALISED_FILE);
strncpy(link->f_url, url, MAX_FILENAME_LEN);
Expand Down

0 comments on commit 2fa2bb9

Please sign in to comment.