projects
/
platform
/
upstream
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74400cc
)
Revert that change. As Matt Kraai rightly points out,
author
Eric Andersen
<andersen@codepoet.org>
Thu, 18 Oct 2001 06:04:23 +0000
(06:04 -0000)
committer
Eric 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
patch
|
blob
|
history
diff --git
a/libbb/fgets_str.c
b/libbb/fgets_str.c
index 7d41d72f1d63c4ada9e670f720b43167fb461dee..33d8d00ccc3c2d37ab79e55f373e05e16a7e6011 100644
(file)
--- 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';