Skip to content

Commit 7289b25

Browse files
authored
Fix format err
1 parent d0ae121 commit 7289b25

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/H5Faccum.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -882,10 +882,9 @@ H5F__accum_free(H5F_shared_t *f_sh, H5FD_mem_t H5_ATTR_UNUSED type, haddr_t addr
882882
new_accum_size = accum->size - overlap_size;
883883

884884
/* Ensure that the memmove operation won't overflow past the buffer's allocated size */
885-
if (H5_IS_BUFFER_OVERFLOW(accum->buf + overlap_size, new_accum_size, accum->buf + accum->alloc_size)) {
886-
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL,
887-
"memmove operation would overflow buffer");
888-
}
885+
if (H5_IS_BUFFER_OVERFLOW(accum->buf + overlap_size, new_accum_size,
886+
accum->buf + accum->alloc_size)) {
887+
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "memmove operation would overflow buffer");
889888

890889
/* Move the accumulator buffer information to eliminate the freed block */
891890
memmove(accum->buf, accum->buf + overlap_size, new_accum_size);

0 commit comments

Comments
 (0)