mktemp should be replaced with mkstemp

Issue #216 resolved
Jochem Snuverink created an issue

Compiling with gcc 7.2. I get at linking:

src/BDSTemporaryFiles.cc:58: warning: the use of `mktemp' is dangerous, better use `mkstemp'

https://linux.die.net/man/3/mktemp says "Never use mktemp()."

To get the filename, note that mkstemp will replace the argument given with the filename.

Comments (1)

  1. Log in to comment