Skip to content

Commit

Permalink
chore: add missing i
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoklee committed Feb 9, 2024
1 parent 03361ac commit 7e2d752
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/filter_plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ test_creating_groups_using_plugins(hid_t fid)
for (i = 0; i < N_SUBGROUPS; i++) {
char *sp = subgroup_name;

sp += snprintf(subgroup_name, sizeof(subgroup_name), SUBGROUP_PREFIX "%d");
sp += snprintf(subgroup_name, sizeof(subgroup_name), SUBGROUP_PREFIX "%d", i);

if ((sub_gid = H5Gcreate2(gid, subgroup_name, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0)
TEST_ERROR;
Expand Down Expand Up @@ -907,7 +907,7 @@ test_opening_groups_using_plugins(hid_t fid)
for (i = 0; i < N_SUBGROUPS; i++) {
char *sp = subgroup_name;

sp += snprintf(subgroup_name, sizeof(subgroup_name), SUBGROUP_PREFIX "%d");
sp += snprintf(subgroup_name, sizeof(subgroup_name), SUBGROUP_PREFIX "%d", i);

if ((sub_gid = H5Gopen2(gid, subgroup_name, H5P_DEFAULT)) < 0)
TEST_ERROR;
Expand Down

0 comments on commit 7e2d752

Please sign in to comment.