Skip to content

Commit

Permalink
#75: Compiler warning is Version 2.3.0e
Browse files Browse the repository at this point in the history
  • Loading branch information
ballle98 committed May 31, 2023
1 parent e8b383d commit 9d54811
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion aq_panel.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ setPanel("RS-8 Combo");
char _panelString[36];
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(),
Expand Down
2 changes: 1 addition & 1 deletion aq_programmer.c
Original file line number Diff line number Diff line change
Expand Up @@ -2230,7 +2230,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;
}
Expand Down
1 change: 1 addition & 0 deletions aq_programmer.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,5 +143,6 @@ bool push_aq_cmd(unsigned char cmd);
void waitForSingleThreadOrTerminate(struct programmingThreadCtrl *threadCtrl, program_type type);
void cleanAndTerminateThread(struct programmingThreadCtrl *threadCtrl);
bool waitForMessage(struct aqualinkdata *aq_data, char* message, int numMessageReceived);
void force_queue_delete();

#endif
2 changes: 1 addition & 1 deletion mongoose.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9d54811

Please sign in to comment.