[master] d0b398738 ensure columns are separated by at least one space
Nils Goroll
nils.goroll at uplex.de
Thu Mar 14 11:01:02 UTC 2019
commit d0b398738eb615969ae4f92095b130949b0006d7
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Thu Mar 14 11:57:00 2019 +0100
ensure columns are separated by at least one space
Fixes #2943
diff --git a/lib/libvarnish/vte.c b/lib/libvarnish/vte.c
index c2f49ec51..b0e2883d0 100644
--- a/lib/libvarnish/vte.c
+++ b/lib/libvarnish/vte.c
@@ -99,6 +99,8 @@ VCLI_VTE(struct cli *cli, struct vsb **src, int width)
nsp = (width - (w_ln)) / n_col;
if (nsp > 3)
nsp = 3;
+ if (nsp < 1)
+ nsp = 1;
cc = 0;
wc = 0;
More information about the varnish-commit
mailing list