X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fserver%2Fhttpd.c;h=2005a296a3e33f8c3b9a59f7e952a7fb493280a4;hb=86e4324f1bd4cd8135cb857e4b940b1f2e872dc3;hp=6d9851533d8af87ece3c307b3133e810f6a175da;hpb=164cb6d04eb582207575c4b8f42c8d1eb4aa2480;p=openocd.git diff --git a/src/server/httpd.c b/src/server/httpd.c index 6d9851533d..2005a296a3 100644 --- a/src/server/httpd.c +++ b/src/server/httpd.c @@ -307,7 +307,7 @@ int handle_request(struct MHD_Connection * connection, const char * url) return ret; } - LOG_DEBUG("Serving %s length=%u", url, len); + LOG_DEBUG("Serving %s length=%zu", url, len); /* serve file directly */ response = MHD_create_response_from_data(len, data, MHD_YES, MHD_NO); MHD_add_response_header(response, "Content-Type", "image/png"); @@ -393,7 +393,7 @@ static int ahc_echo(void * cls, struct MHD_Connection * connection, * being subverted to evil purposes */ - const char *httpd_dir=PKGLIBDIR "/httpd"; + const char *httpd_dir = PKGDATADIR "/httpd"; if (*url=='/') {