From: ceriel Date: Thu, 8 Dec 1988 16:18:29 +0000 (+0000) Subject: fixed: the fgets replacement did not work properly X-Git-Tag: release-5-5~2700 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=10157af05f7bb8f2c78f8c3f825fffb79b0345ee;p=ack.git fixed: the fgets replacement did not work properly --- diff --git a/lang/m2/libm2/XXTermcap.c b/lang/m2/libm2/XXTermcap.c index 46ff28c41..81608dcab 100644 --- a/lang/m2/libm2/XXTermcap.c +++ b/lang/m2/libm2/XXTermcap.c @@ -147,7 +147,7 @@ fgets(buf, count, fd) } *c = *pbf++; if (*c++ == '\n') { - *--c = 0; + *c = 0; return buf; } }