From c7bd63ef5330878027f4ed61d7ccd8d007ea0a87 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Fri, 17 Sep 2021 11:07:20 +0100 Subject: [PATCH] Fix #1351 - squash warning --- mongoose.c | 2 +- src/http.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mongoose.c b/mongoose.c index 5c552cb5..34440826 100644 --- a/mongoose.c +++ b/mongoose.c @@ -1281,7 +1281,7 @@ void mg_http_serve_file(struct mg_connection *c, struct mg_http_message *hm, struct mg_str *inm = NULL; if (fd == NULL || fs->stat(path, &size, &mtime) == 0) { - LOG(LL_DEBUG, ("404 [%.*s] %p", (int) hm->uri.len, hm->uri.ptr, fd)); + LOG(LL_DEBUG, ("404 [%s] %p", path, (void *) fd)); mg_http_reply(c, 404, "", "%s", "Not found\n"); fs->close(fd); // NOTE: mg_http_etag() call should go first! diff --git a/src/http.c b/src/http.c index d8d882ab..fedca44c 100644 --- a/src/http.c +++ b/src/http.c @@ -531,7 +531,7 @@ void mg_http_serve_file(struct mg_connection *c, struct mg_http_message *hm, struct mg_str *inm = NULL; if (fd == NULL || fs->stat(path, &size, &mtime) == 0) { - LOG(LL_DEBUG, ("404 [%.*s] %p", (int) hm->uri.len, hm->uri.ptr, fd)); + LOG(LL_DEBUG, ("404 [%s] %p", path, (void *) fd)); mg_http_reply(c, 404, "", "%s", "Not found\n"); fs->close(fd); // NOTE: mg_http_etag() call should go first!