Fix build

This commit is contained in:
mittorn 2017-02-24 09:22:26 +00:00
parent c129d99721
commit 6a131615c7

View File

@ -821,8 +821,8 @@ static char *strrstr(const char *x, const char *y) {
char *prev = NULL;
char *next;
if (*y == '\0')
return strchr(x, '\0');
while ((next = strstr(x, y)) != NULL) {
return (char*)strchr(x, '\0');
while ((next = (char*)strstr(x, y)) != NULL) {
prev = next;
x = next + 1;
}