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:
parent
7e2749c127
commit
8b2ab12dc1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user