1
0
mirror of https://github.com/TREX-CoE/trexio.git synced 2025-01-03 10:06:01 +01:00

Fix compiler warning during strncpy

The size of 32 correspond to previously allocated block of memory and SHOULD be adapted accordingly
This commit is contained in:
q-posev 2022-07-11 16:36:58 +02:00
parent b656b13cc6
commit 8428a0ab0f

View File

@ -435,7 +435,7 @@ trexio_text_read_$group$ (trexio_text_t* const file)
}
size_t tmp_$group_dset$_len = strlen(buffer);
strncpy(tmp_$group_dset$, buffer, tmp_$group_dset$_len + 1);
strncpy(tmp_$group_dset$, buffer, 32);
tmp_$group_dset$ += tmp_$group_dset$_len + 1;
}
}