summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ivy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ivy.c b/src/ivy.c
index 4b57018..b49ab7f 100644
--- a/src/ivy.c
+++ b/src/ivy.c
@@ -961,6 +961,7 @@ void IvyStart (const char* bus)
{
SupervisionPort = port;
strncpy( addr, p, q-p );
+ addr[q-p] ='\0';
}
else
SupervisionPort = IVY_DEFAULT_BUS;