1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-06 23:44:43 -04:00

[download] explicit cast to (char *) instead of macro

This commit is contained in:
Witold Filipczyk 2022-03-04 20:59:46 +01:00
parent b921db70ba
commit 61dab79139

View File

@ -1024,7 +1024,7 @@ subst_file(char *prog, char *file, char *uri)
* data from stdin instead of a file. */ * data from stdin instead of a file. */
int input = 1; int input = 1;
char *replace; char *replace;
char *original = C_("% "); char *original = (char *)("% ");
int truncate; int truncate;
int tlen = 40; int tlen = 40;
@ -1049,7 +1049,7 @@ subst_file(char *prog, char *file, char *uri)
truncate = 1; truncate = 1;
} }
else if (*prog == '%') else if (*prog == '%')
replace = C_("%"); replace = (char *)("%");
else { else {
original[1] = *prog; original[1] = *prog;
replace = original; replace = original;