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:
parent
b656b13cc6
commit
8428a0ab0f
@ -435,7 +435,7 @@ trexio_text_read_$group$ (trexio_text_t* const file)
|
|||||||
}
|
}
|
||||||
|
|
||||||
size_t tmp_$group_dset$_len = strlen(buffer);
|
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;
|
tmp_$group_dset$ += tmp_$group_dset$_len + 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user