[#2212] CID26203:

Replaced call to tmpfile with call to mkstemp