From e0e490684bcda0126e508b975295268794953d03 Mon Sep 17 00:00:00 2001 From: Lee Ballard Date: Wed, 31 May 2023 09:36:19 -0500 Subject: [PATCH] ballle98/AqualinkD#75: Compiler warning is Version 2.3.0e --- aq_programmer.h | 3 +-- mongoose.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/aq_programmer.h b/aq_programmer.h index 39e6fdd6..fb8ac145 100644 --- a/aq_programmer.h +++ b/aq_programmer.h @@ -140,7 +140,6 @@ int RPM_check(pump_type type, int value, struct aqualinkdata *aqdata); //int RPM_check(int type, int value, struct aqualinkdata *aqdata); const char *ptypeName(program_type type); const char *programtypeDisplayName(program_type type); - - +void force_queue_delete(); #endif diff --git a/mongoose.c b/mongoose.c index fde66dec..d0ffa198 100644 --- a/mongoose.c +++ b/mongoose.c @@ -9347,7 +9347,7 @@ static void mg_do_ssi_include(struct mg_connection *nc, struct http_message *hm, */ if (sscanf(tag, " virtual=\"%[^\"]\"", file_name) == 1) { /* File name is relative to the webserver root */ - snprintf(path, sizeof(path), "%s/%s", opts->document_root, file_name); + snprintf(path, sizeof(path), "%.3070s/%.1024s", opts->document_root, file_name); } else if (sscanf(tag, " abspath=\"%[^\"]\"", file_name) == 1) { /* * File name is relative to the webserver working directory