From 0f912c93b0e7d2c38bcfb11a4c4689b7c1892ce7 Mon Sep 17 00:00:00 2001 From: up here Date: Thu, 1 Dec 2016 11:21:09 +0000 Subject: 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. --- lib/renderers/wayland/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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; -- cgit v1.2.3-70-g09d2