aboutsummaryrefslogtreecommitdiff
path: root/examples/screenshot.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-02-24 18:05:38 -0500
committerGitHub <noreply@github.com>2018-02-24 18:05:38 -0500
commit9dc868a27fde02acd5f61baf3ebd9ca98f26d420 (patch)
treecc5aec085ec1ef9d937fdfe47ffb3c45565c4721 /examples/screenshot.c
parent3bce37f99a0390ef085063cb222b5e96584ae3dd (diff)
parent8ab0073b49cbac51032c6a6ef0b2b38ca7f3b814 (diff)
Merge pull request #667 from Ongy/screenshot_tmpfile_template
prevent screenshot from resuing template array
Diffstat (limited to 'examples/screenshot.c')
-rw-r--r--examples/screenshot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/screenshot.c b/examples/screenshot.c
index 7edb7327..e73989c6 100644
--- a/examples/screenshot.c
+++ b/examples/screenshot.c
@@ -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);