git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3416
d4fa192b-c00b-0410-8231-
f00ffab90ce4
sp = priv;
if (!sp->lines++)
vsb_printf(sp->sb, "Message from %s:\n", sp->name);
- if (sp->maxlines > 0 && sp->lines <= sp->maxlines)
+ if (sp->maxlines < 0 || sp->lines <= sp->maxlines)
vsb_printf(sp->sb, "%s\n", str);
return (0);
}
continue;
AZ(close(p[0]));
VLU_Destroy(vlu);
- if (sp.lines > sp.maxlines)
+ if (sp.maxlines >= 0 && sp.lines > sp.maxlines)
vsb_printf(sb, "[%d lines truncated]\n",
sp.lines - sp.maxlines);
do {