diff options
author | Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com> | 2023-12-01 15:45:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-01 15:45:59 +0200 |
commit | 096d1b1b2b455375e94738220acb49df847fb269 (patch) | |
tree | 3c3f2f85729cd0b9d14311e7935202fd98458188 /database/engine/pdc.c | |
parent | 41f39896755e1bb1fd4c009d1bb76c32220134bf (diff) |
Code cleanup (#16448)
* Code cleanup
* More cleanup
* More cleanup
* Use FILENAME_MAX
* query fix
Diffstat (limited to 'database/engine/pdc.c')
-rw-r--r-- | database/engine/pdc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/database/engine/pdc.c b/database/engine/pdc.c index d27db5be78..bdd36809a2 100644 --- a/database/engine/pdc.c +++ b/database/engine/pdc.c @@ -1039,7 +1039,7 @@ static bool epdl_populate_pages_from_extent_data( if(!page_length || !start_time_s) { char log[200 + 1]; - snprintfz(log, 200, "page %u (out of %u) is EMPTY", i, count); + snprintfz(log, sizeof(log) - 1, "page %u (out of %u) is EMPTY", i, count); epdl_extent_loading_error_log(ctx, epdl, &header->descr[i], log); continue; } @@ -1048,7 +1048,7 @@ static bool epdl_populate_pages_from_extent_data( Word_t metric_id = (Word_t)metric; if(!metric) { char log[200 + 1]; - snprintfz(log, 200, "page %u (out of %u) has unknown UUID", i, count); + snprintfz(log, sizeof(log) - 1, "page %u (out of %u) has unknown UUID", i, count); epdl_extent_loading_error_log(ctx, epdl, &header->descr[i], log); continue; } @@ -1082,7 +1082,7 @@ static bool epdl_populate_pages_from_extent_data( else { if (unlikely(page_offset + vd.page_length > uncompressed_payload_length)) { char log[200 + 1]; - snprintfz(log, 200, "page %u (out of %u) offset %u + page length %zu, " + snprintfz(log, sizeof(log) - 1, "page %u (out of %u) offset %u + page length %zu, " "exceeds the uncompressed buffer size %u", i, count, page_offset, vd.page_length, uncompressed_payload_length); epdl_extent_loading_error_log(ctx, epdl, &header->descr[i], log); |