mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-23 02:19:49 +01:00
Merge pull request #667 from Ongy/screenshot_tmpfile_template
prevent screenshot from resuing template array
This commit is contained in:
commit
9dc868a27f
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ static const struct wl_registry_listener registry_listener = {
|
|||
};
|
||||
|
||||
static int backingfile(off_t size) {
|
||||
static char template[] = "/tmp/wlroots-shared-XXXXXX";
|
||||
char template[] = "/tmp/wlroots-shared-XXXXXX";
|
||||
int fd, ret;
|
||||
|
||||
fd = mkstemp(template);
|
||||
|
|
Loading…
Reference in a new issue