fixed: the fgets replacement did not work properly
authorceriel <none@none>
Thu, 8 Dec 1988 16:18:29 +0000 (16:18 +0000)
committerceriel <none@none>
Thu, 8 Dec 1988 16:18:29 +0000 (16:18 +0000)
lang/m2/libm2/XXTermcap.c

index 46ff28c..81608dc 100644 (file)
@@ -147,7 +147,7 @@ fgets(buf, count, fd)
                }
                *c = *pbf++;
                if (*c++ == '\n') {
-                       *--c = 0;
+                       *c = 0;
                        return buf;
                }
        }