From 10157af05f7bb8f2c78f8c3f825fffb79b0345ee Mon Sep 17 00:00:00 2001 From: ceriel Date: Thu, 8 Dec 1988 16:18:29 +0000 Subject: [PATCH] fixed: the fgets replacement did not work properly --- lang/m2/libm2/XXTermcap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }