fixed: the fgets replacement did not work properly

This commit is contained in:
ceriel 1988-12-08 16:18:29 +00:00
parent 66ae1083a8
commit 10157af05f

View file

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