1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-27 02:56:18 -04:00

[intl] explicit casts to char *

This commit is contained in:
Witold Filipczyk 2022-02-21 16:27:29 +01:00
parent 7e2749c127
commit 8b2ab12dc1

View File

@ -352,7 +352,7 @@ utf8_ptr2cells(const char *string, char *end)
int charlen, cell, cells = 0;
if (end == NULL)
end = strchr(string, '\0');
end = (char *)strchr(string, '\0');
if(!string || !end)
return -1;
@ -409,7 +409,7 @@ utf8_cells2bytes(const char *string, int max_cells, char *end)
assert(max_cells>=0);
if (end == NULL)
end = strchr(string, '\0');
end = (char *)strchr(string, '\0');
if(!string || !end)
return -1;