Browse Source

- 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-c4023f1b3aa9
svn/tags/lighttpd-1.4.13
Marcus Rückert 16 years ago
parent
commit
7cefa9ce73
  1. 2
      src/response.c

2
src/response.c

@ -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…
Cancel
Save