Skip to content

prevent screenshot from resuing template array

Simon Ser requested to merge github/fork/Ongy/screenshot_tmpfile_template into master

Created by: Ongy

The template array given to mkstemp was declared static. This reused the memory, which caused mkstemp to fail if backingfile is run more than once, because the array no longer contained the template syntax (which is forced to end in XXXXXX) but the previous file name.

Merge request reports