Truncate strjoin arguments if > DATA_MAX_NAME_LEN
authorJohn Conroy <john.conroy@interoptechnologies.com>
Wed, 13 Jul 2016 21:03:11 +0000 (17:03 -0400)
committerJohn Conroy <john.conroy@interoptechnologies.com>
Mon, 12 Sep 2016 18:34:26 +0000 (14:34 -0400)
commitf7d1db6cc1bed058ca03747f5c6bdd07ce12be27
tree46e22f46bf24faeb3e2cb1da764d7685d249d831
parenta302b46b0f8b178ea6e360e21a525273598bf652
Truncate strjoin arguments if > DATA_MAX_NAME_LEN

If strjoin() runs out of buffer space when joining strings, use the
remainder of available space rather than skipping additional strings

Reworked return() to avoid extra strlen() call
src/daemon/common.c