0
0
mirror of https://github.com/rkd77/elinks.git synced 2025-09-21 19:46:23 -04:00

Cast to (const char *) in strrchr calls

This commit is contained in:
Witold Filipczyk
2016-04-20 21:03:27 +02:00
parent 2e7a7a5ca3
commit da15322705
10 changed files with 12 additions and 12 deletions

View File

@@ -283,7 +283,7 @@ ecmascript_set_action(unsigned char **action, unsigned char *string)
done_uri(uri);
mem_free(string);
} else { /* relative uri */
unsigned char *last_slash = strrchr(*action, '/');
unsigned char *last_slash = strrchr((const char *)*action, '/');
unsigned char *new_action;
if (last_slash) *(last_slash + 1) = '\0';