Merge pull request #174 from ballle98/dev/bullseye_warnings

ballle98/AqualinkD#58: compiler warnings seen after bullseye update
pull/69/merge
sfeakes 2023-06-23 15:13:44 -05:00 committed by GitHub
commit 1e1e825829
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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(),

View File

@ -2215,7 +2215,7 @@ void 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;
}