- cast ptrdiff_t to size_t to avoid a signed comparison warning
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1361 152afb58-edef-0310-8abb-c4023f1b3aa9svn/tags/lighttpd-1.4.13
parent
fe77777647
commit
7cefa9ce73
|
@ -563,7 +563,7 @@ handler_t http_response_prepare(server *srv, connection *con) {
|
|||
}
|
||||
|
||||
if (slash) pathinfo = slash;
|
||||
} while ((found == 0) && (slash != NULL) && (slash - srv->tmp_buf->ptr > con->physical.basedir->used - 2));
|
||||
} while ((found == 0) && (slash != NULL) && ((size_t)(slash - srv->tmp_buf->ptr) > (con->physical.basedir->used - 2)));
|
||||
|
||||
if (found == 0) {
|
||||
/* no it really doesn't exists */
|
||||
|
|
Loading…
Reference in New Issue