diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-10-18 06:04:23 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-10-18 06:04:23 +0000 |
commit | 7f4450904edcf7b72030a08567a0998cea28232f (patch) | |
tree | 1b0e0056035778be9100dca72809a5e8457de19d /libbb | |
parent | 6d1d34a65ad8952d8115209f78d4f6fffee1e64f (diff) | |
download | busybox-w32-7f4450904edcf7b72030a08567a0998cea28232f.tar.gz busybox-w32-7f4450904edcf7b72030a08567a0998cea28232f.tar.bz2 busybox-w32-7f4450904edcf7b72030a08567a0998cea28232f.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!
git-svn-id: svn://busybox.net/trunk/busybox@3542 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/fgets_str.c | 2 |
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'; |