aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-10-18 06:04:23 +0000
committerEric Andersen <andersen@codepoet.org>2001-10-18 06:04:23 +0000
commita0f0ae5a7acd71c3c56df5183e38c189c3151c98 (patch)
tree1b0e0056035778be9100dca72809a5e8457de19d
parent74400ccfd08e8ff72b9147951dd437dd3bb7abb1 (diff)
downloadbusybox-w32-a0f0ae5a7acd71c3c56df5183e38c189c3151c98.tar.gz
busybox-w32-a0f0ae5a7acd71c3c56df5183e38c189c3151c98.tar.bz2
busybox-w32-a0f0ae5a7acd71c3c56df5183e38c189c3151c98.zip
Revert that change. As Matt Kraai rightly points out,
this is not a bug. What I was I thinking when I committed this. Doh!
-rw-r--r--libbb/fgets_str.c2
1 files changed, 1 insertions, 1 deletions
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)
55 break; 55 break;
56 } 56 }
57 } 57 }
58 if (idx == 0 || linebuf[0] == '\n') { 58 if (idx == 0) {
59 return NULL; 59 return NULL;
60 } 60 }
61 linebuf[idx] = '\0'; 61 linebuf[idx] = '\0';