diff --git a/aq_panel.c b/aq_panel.c index a5b9ed69..6bc8b0a9 100644 --- a/aq_panel.c +++ b/aq_panel.c @@ -112,7 +112,7 @@ setPanel("RS-8 Combo"); char _panelString[60]; void setPanelString() { - sprintf(_panelString, "%s%s-%d %s%s%s", + snprintf(_panelString, sizeof(_panelString), "%s%s-%d %s%s%s", isRS_PANEL?"RS":"", isPDA_PANEL?"PDA":"", // No need for both of these, but for error validation leave it in. PANEL_SIZE(), diff --git a/aq_programmer.c b/aq_programmer.c index 5e1278f4..74465773 100644 --- a/aq_programmer.c +++ b/aq_programmer.c @@ -2231,7 +2231,7 @@ bool send_cmd(unsigned char cmd) void force_queue_delete() { if (_pgm_command != NUL) - LOG(PROG_LOG, LOG_INFO, "Reall bad coding, don't use this in release\n"); + LOG(PROG_LOG, LOG_INFO, "Really bad coding, don't use this in release\n"); _pgm_command = NUL; } diff --git a/aq_programmer.h b/aq_programmer.h index 3bdd1608..f3f1f59b 100644 --- a/aq_programmer.h +++ b/aq_programmer.h @@ -139,7 +139,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