From 1b49a5e35ee4ee488cab443c0e040a2e58a76af0 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 30 Nov 2013 17:57:08 +0100 Subject: fix bitrot shm name Reported-by: runningman84 Issue: github issue #10 Signed-off-by: Stanislaw Halik --- x-plane-plugin/plugin.c | 1 - 1 file changed, 1 deletion(-) diff --git a/x-plane-plugin/plugin.c b/x-plane-plugin/plugin.c index 2c43b98d..a8fd28d2 100644 --- a/x-plane-plugin/plugin.c +++ b/x-plane-plugin/plugin.c @@ -59,7 +59,6 @@ PortableLockedShm* PortableLockedShm_init(const char *shmName, const char *OT_UN shm_filename[0] = '/'; strncpy(shm_filename+1, shmName, NAME_MAX-2); shm_filename[NAME_MAX-1] = '\0'; - sprintf(shm_filename + strlen(shm_filename), "%ld\n", (long) getuid()); /* (void) shm_unlink(shm_filename); */ self->fd = shm_open(shm_filename, O_RDWR | O_CREAT, 0600); -- cgit v1.2.3