Revert that change. As Matt Kraai rightly points out,
authorEric Andersen <andersen@codepoet.org>
Thu, 18 Oct 2001 06:04:23 +0000 (06:04 -0000)
committerEric Andersen <andersen@codepoet.org>
Thu, 18 Oct 2001 06:04:23 +0000 (06:04 -0000)
this is not a bug.  What I was I thinking when I committed
this.  Doh!

libbb/fgets_str.c

index 7d41d72f1d63c4ada9e670f720b43167fb461dee..33d8d00ccc3c2d37ab79e55f373e05e16a7e6011 100644 (file)
@@ -55,7 +55,7 @@ char *fgets_str(FILE *file, const char *terminating_string)
                        break;
                }
        }
-       if (idx == 0 || linebuf[0] == '\n') {
+       if (idx == 0) {
                return NULL;
        }
        linebuf[idx] = '\0';