aboutsummaryrefslogtreecommitdiffstats
path: root/conf.c
diff options
context:
space:
mode:
authorokan2016-10-04 15:52:32 +0000
committerokan2016-10-04 15:52:32 +0000
commitcb6c7d73322f62354a979a5338b41a5a297c5795 (patch)
treee419fe5eb7e5b15cdf4d1a7fdc9e83b20b918f35 /conf.c
parent2e16db28638cf0e78e6ddae11521a1f589179f67 (diff)
downloadcwm-cb6c7d73322f62354a979a5338b41a5a297c5795.tar.gz
Calculate client nameqlen in client_setname(), the only place it's
needed/used.
Diffstat (limited to '')
-rw-r--r--conf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/conf.c b/conf.c
index 156211d..6b523fb 100644
--- a/conf.c
+++ b/conf.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: conf.c,v 1.211 2016/10/04 15:18:20 okan Exp $
+ * $OpenBSD: conf.c,v 1.212 2016/10/04 15:52:32 okan Exp $
*/
#include <sys/types.h>
@@ -259,6 +259,7 @@ conf_init(struct conf *c)
c->mamount = 1;
c->snapdist = 0;
c->ngroups = 10;
+ c->nameqlen = 5;
TAILQ_INIT(&c->ignoreq);
TAILQ_INIT(&c->cmdq);