Skip to content

Commit

Permalink
Fix sign extension bug in escape_path().
Browse files Browse the repository at this point in the history
  • Loading branch information
skullernet committed Jun 13, 2024
1 parent 0c86849 commit 4bf49a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/http.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ static size_t recv_func(void *ptr, size_t size, size_t nmemb, void *stream)
static void escape_path(char *escaped, const char *path)
{
while (*path) {
int c = *path++;
byte c = *path++;
if (!Q_isalnum(c) && !strchr("/-_.~", c)) {
sprintf(escaped, "%%%02x", c);
escaped += 3;
Expand Down

0 comments on commit 4bf49a6

Please sign in to comment.