summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNahum Shalman <nshalman@elys.com>2012-01-08 13:44:20 +0200
committerAlon Levy <alevy@redhat.com>2012-01-08 13:44:20 +0200
commitfee5c141ab677e252ed0b57c067f637d83105b29 (patch)
treec0619df7eac4ba4b823537c458600daaa1eec8ba
parent7fcef3ed3056010ac4b959e1cee2032f23cc5db9 (diff)
Fix SPICE_STAT_SHM_NAME to be portable
From SHM_OPEN(3): For portable use, a shared memory object should be identified by a name of the form /somename; that is, a null-terminated string of up to NAME_MAX (i.e., 255) characters consisting of an initial slash, followed by one or more characters, none of which are slashes.
-rw-r--r--spice/stats.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/spice/stats.h b/spice/stats.h
index eea5478..452d89e 100644
--- a/spice/stats.h
+++ b/spice/stats.h
@@ -33,7 +33,7 @@
#include <spice/types.h>
-#define SPICE_STAT_SHM_NAME "spice.%u"
+#define SPICE_STAT_SHM_NAME "/spice.%u"
#define SPICE_STAT_NODE_NAME_MAX 20
#define SPICE_STAT_MAGIC (*(uint32_t*)"STAT")
#define SPICE_STAT_VERSION 1