mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05: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 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…
Add table
Add a link
Reference in a new issue