mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-protocol
synced 2025-12-27 15:08:16 +00:00
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.
This commit is contained in:
parent
7fcef3ed30
commit
fee5c141ab
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user