Skip to content

Commit

Permalink
Merge pull request #3250 from airween/v2/literalbuildfix
Browse files Browse the repository at this point in the history
fix: compilation error
  • Loading branch information
airween authored Sep 4, 2024
2 parents b5179a1 + 38e812d commit 0e6fc62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: autogen.sh
run: ./autogen.sh
- name: configure ${{ matrix.configure.label }}
run: ./configure --enable-assertions ${{ matrix.configure.opt }}
run: ./configure --enable-assertions ${{ matrix.configure.opt }} 'CFLAGS=-Werror=format-security'
- uses: ammaraskar/gcc-problem-matcher@master
- name: make
run: make -j `nproc`
Expand Down
4 changes: 2 additions & 2 deletions apache2/re.c
Original file line number Diff line number Diff line change
Expand Up @@ -472,8 +472,8 @@ char *update_rule_target_ex(modsec_rec *msr, msre_ruleset *ruleset, msre_rule *r

end:
if (my_error_msg) {
if (msr) msr_log(msr, 9, my_error_msg);
else ap_log_error(APLOG_MARK, APLOG_INFO, 0, NULL, my_error_msg);
if (msr) msr_log(msr, 9, "%s", my_error_msg);
else ap_log_error(APLOG_MARK, APLOG_INFO, 0, NULL, "%s", my_error_msg);
}
if (target_list != NULL) free(target_list);
if (replace != NULL) free(replace);
Expand Down

0 comments on commit 0e6fc62

Please sign in to comment.