cpp: Use mkstemps() to create unique temporary file
commita86e9fd6e1320fdd317b8cc604470afc8e709186
authorTobias Klauser <tklauser@distanz.ch>
Tue, 26 Apr 2016 09:19:27 +0000 (26 11:19 +0200)
committerTobias Klauser <tklauser@distanz.ch>
Tue, 26 Apr 2016 09:22:18 +0000 (26 11:22 +0200)
treea502a3223acdb0d337bbeb0ea620559b2e8d475b
parent01a9a2a5a8c56ce8699616a608a28de4e537ff56
cpp: Use mkstemps() to create unique temporary file

Use mkstemps() to safely create a unique temporary file instead of using
rand() to manually create a (potentially unsafe) temporary filename.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
cpp.c