Merge pull request #667 from Ongy/screenshot_tmpfile_template

prevent screenshot from resuing template array
master
Drew DeVault 7 years ago committed by GitHub
commit 9dc868a27f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save