Browse Source

fixed: the fgets replacement did not work properly

ceriel 36 years ago
parent
commit
93b5b5b7d7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lang/m2/libm2/XXTermcap.c

+ 1 - 1
lang/m2/libm2/XXTermcap.c

@@ -147,7 +147,7 @@ fgets(buf, count, fd)
 		}
 		*c = *pbf++;
 		if (*c++ == '\n') {
-			*--c = 0;
+			*c = 0;
 			return buf;
 		}
 	}