Skip to content

Commit

Permalink
Fix bad length in snprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjala committed Dec 16, 2024
1 parent f5d0281 commit 8102e2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
matrix:
os: [ubuntu-22.04, ubuntu-latest]
build_system: ["autotools", "cmake"]
python-version: ["3.10", "3.11", "3.12"]
python-version: ["3.10"]
hdf5-branch: ["hdf5_1_14", "develop"]
compiler: ["gcc-11", "gcc-12", "gcc-13"]
exclude:
Expand Down
2 changes: 1 addition & 1 deletion src/rest_vol.c
Original file line number Diff line number Diff line change
Expand Up @@ -3166,7 +3166,7 @@ RV_convert_dataspace_shape_to_JSON(hid_t space_id, char **shape_body, char **max
else {
if ((bytes_printed =
snprintf(maxdims_out_string_curr_pos,
maxdims_out_string_new_len - (size_t)maxdims_out_string_curr_pos,
maxdims_out_string_new_len - (size_t)buf_ptrdiff,
"%s%" PRIuHSIZE, i > 0 ? "," : "", maxdims[i])) < 0)
FUNC_GOTO_ERROR(H5E_DATASPACE, H5E_SYSERRSTR, FAIL, "snprintf error");
maxdims_out_string_curr_pos += bytes_printed;
Expand Down

0 comments on commit 8102e2f

Please sign in to comment.