Merge pull request #667 from Ongy/screenshot_tmpfile_template

prevent screenshot from resuing template array
This commit is contained in:
Drew DeVault 2018-02-24 18:05:38 -05:00 committed by GitHub
commit 9dc868a27f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);