Commit de1cf63
committed
Fix GCC warning in msc_headers_to_buffer():
In file included from /usr/include/stdio.h:970,
from modsecurity.h:18,
from msc_util.c:15:
In function 'sprintf',
inlined from 'msc_headers_to_buffer' at msc_util.c:2331:17:
/usr/include/bits/stdio2.h:30:10: warning: '__sprintf_chk' argument 5 overlaps destination object 'buffer' [-Wrestrict]
30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
32 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
msc_util.c: In function 'msc_headers_to_buffer':
msc_util.c:2306:64: note: destination object referenced by 'restrict'-qualified argument 1 was declared here
2306 | int msc_headers_to_buffer(const apr_array_header_t *arr, char *buffer,
| ~~~~~~^~~~~~1 parent 9d9a727 commit de1cf63
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2310 | 2310 | | |
2311 | 2311 | | |
2312 | 2312 | | |
| 2313 | + | |
2313 | 2314 | | |
2314 | 2315 | | |
2315 | 2316 | | |
| 2317 | + | |
2316 | 2318 | | |
2317 | 2319 | | |
2318 | 2320 | | |
| |||
2328 | 2330 | | |
2329 | 2331 | | |
2330 | 2332 | | |
2331 | | - | |
| 2333 | + | |
| 2334 | + | |
| 2335 | + | |
2332 | 2336 | | |
2333 | 2337 | | |
2334 | 2338 | | |
| |||
0 commit comments