Skip to content

Commit

Permalink
code: avoid casting const char * to char * by copying in http.c
Browse files Browse the repository at this point in the history
Signed-off-by: Hans Zandbelt <[email protected]>
  • Loading branch information
zandbelt committed Dec 16, 2024
1 parent 3c31107 commit 1ef3fd4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/http.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ char *oidc_http_url_decode(const request_rec *r, const char *str) {
goto end;
}

replaced = (char *)str;
while (str[counter] != '\0') {
if (str[counter] == '+') {
replaced = apr_pstrdup(r->pool, str);
while (replaced[counter] != '\0') {
if (replaced[counter] == '+') {
replaced[counter] = ' ';
}
counter++;
Expand Down

0 comments on commit 1ef3fd4

Please sign in to comment.