circo

claudio's IRC oasis
git clone git://git.bitsmanent.org/circo
Log | Files | Refs | README | LICENSE

commit ae05606e2bba2f91cc4ccfdb42e5fd18e0547345
parent cdf798c3a3bbea044003801ca2ea87e0926ae4a8
Author: Claudio Alessi <smoppy@gmail.com>
Date:   Fri,  4 Aug 2017 23:48:49 +0200

bufinfo() returns -1 on error.

Diffstat:
Mcirco.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/circo.c b/circo.c @@ -222,7 +222,7 @@ bufinfo(char *buf, int len, int val, int act) { else ++x; } - return y - 1; /* TotalLines */ + return (act == TotalLines ? y : 0) - 1; } void