From 7f4450904edcf7b72030a08567a0998cea28232f Mon Sep 17 00:00:00 2001 From: andersen Date: Thu, 18 Oct 2001 06:04:23 +0000 Subject: Revert that change. As Matt Kraai rightly points out, this is not a bug. What I was I thinking when I committed this. Doh! git-svn-id: svn://busybox.net/trunk/busybox@3542 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- libbb/fgets_str.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libbb/fgets_str.c b/libbb/fgets_str.c index 7d41d72f1..33d8d00cc 100644 --- a/libbb/fgets_str.c +++ b/libbb/fgets_str.c @@ -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'; -- cgit v1.2.3-55-g6feb