the use of `mktemp' is dangerous, better use `mkstemp'
Brought to you by:
chulbe2lsu,
t-beu
When I link against matio-1.3.4, I get the following linker warning:
matio-1.3.4/src/mat.c:552: warning: the use of `mktemp' is dangerous, better use `mkstemp'
The manpage for mktemp states: "Never use mktemp()." It is a drop-in replacement to use mkstemp, so please switch to the safer version.
I have fixed this bug. Can a developer contact me with info on how to submit my changes to be merged?
You are welcome to submit a git pull request to my repo at https://github.com/tbeu/matio Thank you!
It is not. mkstemp returns a file descriptor, however (as of hdf5 1.8.20 or 1.10.1) there is no HDF5 API function that can deal with such a file descriptor. As long as this is the case the issue cannot be fixed in a clean way.
Resolved by v1.5.18.