mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-25 16:42:26 +00:00
Merge pull request #667 from Ongy/screenshot_tmpfile_template
prevent screenshot from resuing template array
This commit is contained in:
commit
9dc868a27f
@ -122,7 +122,7 @@ static const struct wl_registry_listener registry_listener = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static int backingfile(off_t size) {
|
static int backingfile(off_t size) {
|
||||||
static char template[] = "/tmp/wlroots-shared-XXXXXX";
|
char template[] = "/tmp/wlroots-shared-XXXXXX";
|
||||||
int fd, ret;
|
int fd, ret;
|
||||||
|
|
||||||
fd = mkstemp(template);
|
fd = mkstemp(template);
|
||||||
|
Loading…
Reference in New Issue
Block a user