ql-tipc: fix channel name length in trusty_ipc_dev_connect

Bug: 244775755
Change-Id: I64a86730279b616efd4072dfc1be56bd81ea5317
diff --git a/ql-tipc/ipc_dev.c b/ql-tipc/ipc_dev.c
index d24eb2c..e3a34a3 100644
--- a/ql-tipc/ipc_dev.c
+++ b/ql-tipc/ipc_dev.c
@@ -265,7 +265,7 @@
 
     /* check port name length */
     port_len = trusty_strlen(port) + 1;
-    if (port_len > (dev->buf_size - sizeof(*cmd) + sizeof(*req))) {
+    if (port_len > (dev->buf_size - sizeof(*cmd) - sizeof(*req))) {
         /* it would not fit into buffer */
         trusty_error("%s: port name is too long (%zu)\n", __func__, port_len);
         return TRUSTY_ERR_INVALID_ARGS;