aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xenstore/xenstored_linux.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/xenstore/xenstored_linux.c')
-rw-r--r--tools/xenstore/xenstored_linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/xenstore/xenstored_linux.c b/tools/xenstore/xenstored_linux.c
index 5460ca5573..cf40213b3b 100644
--- a/tools/xenstore/xenstored_linux.c
+++ b/tools/xenstore/xenstored_linux.c
@@ -32,7 +32,7 @@ evtchn_port_t xenbus_evtchn(void)
if (fd == -1)
return -1;
- rc = read(fd, str, sizeof(str));
+ rc = read(fd, str, sizeof(str) - 1);
if (rc == -1)
{
int err = errno;