diff options
author | up here <uphere+github@fastmail.fm> | 2016-12-01 11:21:09 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-01 11:21:09 +0000 |
commit | 0f912c93b0e7d2c38bcfb11a4c4689b7c1892ce7 (patch) | |
tree | 1c20e1498e14dc377a8e519f4fd866e9ba94d4b7 /lib | |
parent | 6b951600aa4477a7fac0b60deedc852c79117715 (diff) | |
download | bemenu-0f912c93b0e7d2c38bcfb11a4c4689b7c1892ce7.tar.gz bemenu-0f912c93b0e7d2c38bcfb11a4c4689b7c1892ce7.tar.bz2 bemenu-0f912c93b0e7d2c38bcfb11a4c4689b7c1892ce7.zip |
Remove double slash from os anonymous file
the anonymous file path is created from
- the XDG_RUNTIME path (with optional slash at the end)
- a slash if the XDG_RUNTIME path didn't have one
- and the tmpfile template (which starts with a slash).
This guarantees there are always two slashes before the filename.
It does not affect the behaviour of the program, but I've removed it anyway.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/renderers/wayland/window.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/renderers/wayland/window.c b/lib/renderers/wayland/window.c index fb4a8f0..af9325f 100644 --- a/lib/renderers/wayland/window.c +++ b/lib/renderers/wayland/window.c @@ -50,7 +50,7 @@ create_tmpfile_cloexec(char *tmpname) static int os_create_anonymous_file(off_t size) { - static const char template[] = "/bemenu-shared-XXXXXX"; + static const char template[] = "bemenu-shared-XXXXXX"; int fd; int ret; |