summaryrefslogtreecommitdiffhomepage
path: root/x-plane-plugin
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-11-30 17:57:08 +0100
committerStanislaw Halik <sthalik@misaki.pl>2013-11-30 17:57:08 +0100
commit1b49a5e35ee4ee488cab443c0e040a2e58a76af0 (patch)
tree2f7bdffb5bdb7b3f7480688aff3fd8c78830bf4d /x-plane-plugin
parent8b3838e6e744bd1dfff290bf56ee4543bc442526 (diff)
fix bitrot shm name
Reported-by: runningman84 Issue: github issue #10 Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
Diffstat (limited to 'x-plane-plugin')
-rw-r--r--x-plane-plugin/plugin.c1
1 files changed, 0 insertions, 1 deletions
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);