diff options
| author | Björn Stenberg <bjorn@haxx.se> | 2002-09-20 10:20:13 +0000 |
|---|---|---|
| committer | Björn Stenberg <bjorn@haxx.se> | 2002-09-20 10:20:13 +0000 |
| commit | 55e25b1551f7d397252e5f9802e8cb5e7c4b57e5 (patch) | |
| tree | af5198ac7159f30e6218dab66a0c037e872bb944 | |
| parent | 3aeece0541d4654cfc3b27fc9b9cd869c9890180 (diff) | |
| download | rockbox-55e25b1551f7d397252e5f9802e8cb5e7c4b57e5.zip rockbox-55e25b1551f7d397252e5f9802e8cb5e7c4b57e5.tar.gz rockbox-55e25b1551f7d397252e5f9802e8cb5e7c4b57e5.tar.bz2 rockbox-55e25b1551f7d397252e5f9802e8cb5e7c4b57e5.tar.xz | |
Fixed EOF problem
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2349 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | tools/convbdf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/convbdf.c b/tools/convbdf.c index 00db9ae..3c87df6 100644 --- a/tools/convbdf.c +++ b/tools/convbdf.c @@ -643,7 +643,7 @@ char *bdf_getline(FILE *fp, char *buf, int len) *b++ = c; } *b = '\0'; - if (c == EOF) + if (c == EOF && b == buf) return NULL; if (b != buf && !isprefix(buf, "COMMENT")) break; |